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 2020/04/09 16:50:12 UTC

[GitHub] [cordova] breautek commented on issue #209: ionic cordova platform add - fails to update build.gradle with proper android gradle plugin

breautek commented on issue #209: ionic cordova platform add - fails to update build.gradle with proper android gradle plugin
URL: https://github.com/apache/cordova/issues/209#issuecomment-611632827
 
 
   On android studio 3.6.1, I'm able to add and build a simple android cordova project successfully, with the gradle plugin set to version 3.3.0.
   
   I'm currently unable to update to 3.6.2 because this version was just recently released and is currently not in the package repository for my OS. But I'd be pretty surprised if Google would introduce a breaking change in a patch bump.
   
   Cordova doesn't simply just accept the latest version of its dependencies because you could also run into this exact same type of scenario if dependencies just arbitrary update. Versions are pinned because they have demonstrated repeatedly that version consistently works with the latest versions available at the time of release. Do note that google does not follow traditional semver syntax. The version x.y.z, if x **or** y changes, they consider that a major release that can include breaking changes. So hard wiring versions is **not** a bug, it is completely intentional to avoid unintentional breaking changes.
   
   When 3.6.2 releases is propagated to the release channels for my OS, I'll rerun my tests on version 3.6.2. You may need to ping me in about a week if you don't see a response. If by the weekend I still don't see the 3.6.2 update, I'll just download from the website and install & configure a 3.6.2 environment so that I can test. I just can't spend the time to do that right now.
   
   In the meantime, couple of potential workarounds I can see are:
   1. fork cordova-android, and update the `build.gradle` file to pin the gradle plugin against 3.6.0 (current latest). Do note this [requires](https://developer.android.com/studio/releases/gradle-plugin#3-6-0) you to have at least gradle 5.x, so this means you may have to use 9.0.0-dev, as well as have build tools 28.0.3 installed. Then you can install the your version of the platform over git.
   2. If the issue is indeed with AS 3.6.2, then reverting back [3.6.1](https://developer.android.com/studio/archive) may also be a workaround.

----------------------------------------------------------------
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