Reputation: 37
I am building android APK in ionic but getting this error.
Failed to apply plugin [id 'com.android.application'] Minimum supported Gradle version is 4.4. Current version is 4.1. If using the gradle wrapper, try editing the distributionUrl
Can anyone please let me know why we are getting this error. Its working fine on browser.
I am using ionic 2.
Upvotes: 0
Views: 102
Reputation: 1466
To solve these kinds of Ionic build problems in Android, I stick to command line only builds. Try the following:
ionic cordova platform rm android
rm -rf platforms
rm -rf plugins
ionic cordova platform add android
ionic cordova build android
cordova build android --verbose
Upvotes: 1
Reputation: 7
You need the Android SDK to build an APK file.
Try downloading the latest Android SDK version, remove the Android platform from your project, delete the 'android' folder inside 'platforms' folder and add the Android platform again.
Upvotes: 0