piotr-cz edited a comment on issue #780: [MAJOR] Update for Gradle version 5 URL: https://github.com/apache/cordova-android/issues/780#issuecomment-532261032 After upgrading Android Studio to 3.5 and cordova-android to 8.1 builds via CLI doesn't work anymore: ``` FAILURE: Build failed with an exception. * Where: Build file 'D:\x\platforms\android\app\build.gradle' line: 20 * What went wrong: A problem occurred evaluating project ':app'. > Failed to apply plugin [id 'com.android.application'] > Minimum supported Gradle version is 5.4.1. Current version is 4.10.3. If using the gradle wrapper, try editing the distributionUrl in C:\Users\y\gradle\wrapper\gradle-wrapper.properties to gradle-5.4.1-all.zip ``` My workardound is to set gradle distribution url to 5.6 before starting build or build via Android Studio which 3.5 installs gradle by itself. ```sh set CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL=https://services.gradle.org/distributions/gradle-5.6.2-all.zip ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
