Failed To Apply Plugin [id 'com.android.application'] - Minimum Supported Gradle Version Is 4.4
Solution 1:
Default gradle pointer wrong. During update, Android Studio ffailed to update the symlink for gradle:
/usr/local/bin/gradle
Once I manually updated
ln -s /Users/userx/.gradle/wrapper/dists/gradle-4.4-all/9br9xq1tocpiv8o6njlyu5op1/gradle-4.4/bin/gradle /usr/local/bin/
all builds started working again.
Solution 2:
Classpath
version in build.gradle
project level should be compatible with gradle
version in gradle-wrapper.properties
file.
in my case:
build.gradle project level:
classpath 'com.android.tools.build:gradle:3.5.3'
and gradle-wrapper.properties:-
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
Solution 3:
I faced the same problem using platform IONIC and CORDOVA
I solved this problem doing the following...
First
inside folder of your project
gradlew wrapper --gradle-version=4.7 --distribution-type=all
Second
Open the folder of your project via Android Studio e runs The command
Sync Project with Gradle Files
Third
cordova plugin rm cordova-plugin-facebook4 --save (if necessary) ionic cordova platform rm android npm uninstall cordova ionic -g
At last
npm install -g cordova ionic ionic cordova platform add android ionic cordova plugin add cordova-plugin-facebook4 --variable APP_ID="your_app_id" --variable APP_NAME="the_name_of_your_app"
And now ...
ionic cordova build android BUILD SUCCESSFUL
Post a Comment for "Failed To Apply Plugin [id 'com.android.application'] - Minimum Supported Gradle Version Is 4.4"