You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/09/18 07:44:15 UTC

[GitHub] [cordova-android] piotr-cz edited a comment on issue #780: [MAJOR] Update for Gradle version 5

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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org