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 09:43:43 UTC
[GitHub] [cordova] nhhockeyplayer opened a new issue #209: ionic cordova
platform add - fails to update build.gradle with proper android gradle plugin
nhhockeyplayer opened a new issue #209: ionic cordova platform add - fails to update build.gradle with proper android gradle plugin
URL: https://github.com/apache/cordova/issues/209
# Bug Report
ionic cordova platform add - fails to update build.gradle with proper android gradle plugin
## Problem
causes build to fail permanently
### What is expected to happen?
when adding a new plaform, build.gradle should reflect the appropriate android gradle plugin not some hardwired guess like 3.3.0
### What does actually happen?
version 3.3.0 is what lands inside the platforms/android/build.gradle instead of 3.6.2 which syncs the gradle version with the version of android studio I am using which is in fact 3.6.2
weeks have been spent troubleshooting this and is rued the build process
## Information
android studio 3.6.2
gradle plugin 3.6.4
very disimpressed with the handling of gradle version and the dependent plugin version with adding platforms
this is a show stopper for build process and issues rampant all over the internet no one knows what to do
some of us like to build 10% completely with the command line and never even launch android studio AND THIS IS FEASIBLE and has been
I shouldnt havee to launch webstorm to tell me the cordova platform archetype missed the version on the android gradle plugin
----------------------------------------------------------------
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
[GitHub] [cordova] nhhockeyplayer commented on issue #209: ionic cordova
platform add - fails to update build.gradle with proper android gradle plugin
Posted by GitBox <gi...@apache.org>.
nhhockeyplayer 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-611609923
I have isolated this to the following
cat platforms/android/build.gradle | grep 3.
always shows that
ionic cordova prepare android
is hardwiring the build.gradle to 3.3.0 for the android gradle plugin
----------------------------------------------------------------
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
[GitHub] [cordova] nhhockeyplayer commented on issue #209: ionic cordova
platform add - fails to update build.gradle with proper android gradle plugin
Posted by GitBox <gi...@apache.org>.
nhhockeyplayer 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-611442481
ok correction here
I just performed
ionic repair
ionic cordova prepare android --no-build
meanstack@meanstacks-MacBook-Pro myapp % cat platforms/android/build.gradle | grep 3.
classpath 'com.android.tools.build:gradle:3.3.0'
defaultBuildToolsVersion="28.0.3" //String
meanstack@meanstacks-MacBook-Pro myapp %
it was the prepare command that reset the gradle version back to malevolent version 3.3.0
can someone provide some assist on this
its stopping builds everywhere and the issues are persistent year after year
this is what my cache looks like
meanstack@meanstacks-MacBook-Pro myapp % ls .gradle .idea ~/.gradle
ls: .idea: No such file or directory
.gradle:
5.6.4 buildOutputCleanup
/Users/meanstack/.gradle:
caches daemon native notifications wrapper
meanstack@meanstacks-MacBook-Pro myapp % ls .gradle .idea ~/.gradle/caches
ls: .idea: No such file or directory
.gradle:
5.6.4 buildOutputCleanup
/Users/meanstack/.gradle/caches:
5.6.4 jars-3 journal-1 modules-2 transforms-2
----------------------------------------------------------------
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
[GitHub] [cordova] nhhockeyplayer commented on issue #209: ionic cordova
platform add - fails to update build.gradle with proper android gradle plugin
Posted by GitBox <gi...@apache.org>.
nhhockeyplayer 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-611622372
last july i identified gradle source file in the archetype hardwired to gradle version 4
completely wiping out android studio and its upgrade gradle mechanisms by corrupting and downloading artifacts and confusing the whole underlying build system
this looks and seems to be another BUG of hardwiring
we can do better
----------------------------------------------------------------
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
[GitHub] [cordova] nhhockeyplayer edited a comment on issue #209: ionic
cordova platform add - fails to update build.gradle with proper android
gradle plugin
Posted by GitBox <gi...@apache.org>.
nhhockeyplayer edited a comment 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-611446469
why isnt
cordova platform add android
or
cordova prepare android
doing a gradle sync
and then a android gradle plugin update
so it can update the android gradle plugin inside build.gradle
?
more gradle wrapper bumps this is extremely frustrating
----------------------------------------------------------------
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
[GitHub] [cordova] nhhockeyplayer commented on issue #209: ionic cordova
platform add - fails to update build.gradle with proper android gradle plugin
Posted by GitBox <gi...@apache.org>.
nhhockeyplayer 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-611662936
pinned is a nice catch phrase
i can spot hardwiring after 30 yrs of industry no offense but it pulls out the legs on automation and obviously a chronic build problem countless engineers cannot build fluidly
forking to fix is another unacceptable avenue
its too much work
I have seen engineers on projects that do not even survive and get trampled by the armies
I find the whole design unacceptable and the amount of crash stop bugs impossible to even track there are so many and its impossible to get a build
thank you for the feedback
----------------------------------------------------------------
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
[GitHub] [cordova] nhhockeyplayer edited a comment on issue #209: ionic
cordova platform add - fails to update build.gradle with proper android
gradle plugin
Posted by GitBox <gi...@apache.org>.
nhhockeyplayer edited a comment 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-611662936
pinned is a nice catch phrase
i can spot hardwiring after 30 yrs of industry no offense but it pulls out the legs on automation and obviously a chronic build problem countless engineers cannot build fluidly
forking to fix is another unacceptable avenue
its too much work
thank you for the feedback
----------------------------------------------------------------
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
[GitHub] [cordova] nhhockeyplayer commented on issue #209: ionic cordova
platform add - fails to update build.gradle with proper android gradle plugin
Posted by GitBox <gi...@apache.org>.
nhhockeyplayer 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-611446469
why isnt
cordova platform add android
or
cordova prepare android
doing a gradle sync
so it can update the android gradle plugin inside build.gradle
?
more gradle wrapper bumps this is extremely frustrating
----------------------------------------------------------------
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
[GitHub] [cordova] andalike commented on issue #209: ionic cordova platform
add - fails to update build.gradle with proper android gradle plugin
Posted by GitBox <gi...@apache.org>.
andalike 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-611499125
Try this:
1) Go to android folder(platform/android)
2) go to build.gradle file
3) Modify the line: dependencies {
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath: << Insert your version here>>
4) Do a build and run
----------------------------------------------------------------
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
[GitHub] [cordova] nhhockeyplayer edited a comment on issue #209: ionic
cordova platform add - fails to update build.gradle with proper android
gradle plugin
Posted by GitBox <gi...@apache.org>.
nhhockeyplayer edited a comment 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-611613961
my whole idea is we shouldnt have to go into the manhole and even touch the build.gradle file
whats wrong with that
for a working product
no assembly required?
it should be smart enough
if you try
ionic cordova prepare
you will see that lonic is resetting and hardwiring the build.gradle file to version 3.3.0 of the android gradle plugin and that p[resents a show stopper for android studio and the build process iself
cant build
----------------------------------------------------------------
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
[GitHub] [cordova] nhhockeyplayer edited a comment on issue #209: ionic
cordova platform add - fails to update build.gradle with proper android
gradle plugin
Posted by GitBox <gi...@apache.org>.
nhhockeyplayer edited a comment 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-611662936
pinned is a nice catch phrase
i can spot hardwiring after 30 yrs of industry no offense but it pulls out the legs on automation and obviously a chronic build problem countless engineers cannot build fluidly
forking to fix is another unacceptable avenue
its too much work
why cant it just work
so the hardwiring will stay put and there will be no gradle sync
its all bottom up and been that way for long time
I think a top down redesign needs to be looked at for GRADLE & PLUGINS because this is only serving the committers at this point
thank you for the feedback
----------------------------------------------------------------
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
[GitHub] [cordova] nhhockeyplayer commented on issue #209: ionic cordova
platform add - fails to update build.gradle with proper android gradle plugin
Posted by GitBox <gi...@apache.org>.
nhhockeyplayer 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-611448397
if someone can provide us the
android configure project
workaround command to perform this we can fit it into our build pipeline
thanks for your help
----------------------------------------------------------------
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
[GitHub] [cordova] nhhockeyplayer edited a comment on issue #209: ionic
cordova platform add - fails to update build.gradle with proper android
gradle plugin
Posted by GitBox <gi...@apache.org>.
nhhockeyplayer edited a comment 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-611613961
my whole idea is we shouldnt have to go into the manhole and even touch the build.gradle file
whats wrong with that
for a working product
no assembly required?
it should be smart enough
if you try
ionic cordova prepare
you will see that lonic is resetting and hardwiring the build.gradle file to version 3.3.0 of the android gradle plugin and that presents a show stopper for android studio and the build process iself
cant build
it like saying... tie your shoes... ok take one step... then tie them again.. then take another step
in the field on large scale projects for insurance companies we need to automate the regeneration of archetypes in one sweep without touching anything beneath
its pure web
we arent doing java (its obsolete) and dont need to
----------------------------------------------------------------
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
[GitHub] [cordova] raphinesse commented on issue #209: ionic cordova
platform add - fails to update build.gradle with proper android gradle plugin
Posted by GitBox <gi...@apache.org>.
raphinesse 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-611599625
@nhhockeyplayer
- Your messages sound quite rude
- This is not an ionic support forum or bug tracker
- If you think you found a problem with Cordova, add the exact commands to reproduce your problem
- Do not hesitate to edit the actual issue with the relevant information instead of posting comments that correct the previous statements
- The supported way to build your app is to use Cordova's CLI (as in `cordova build android`)
----------------------------------------------------------------
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
[GitHub] [cordova] nhhockeyplayer edited a comment on issue #209: ionic
cordova platform add - fails to update build.gradle with proper android
gradle plugin
Posted by GitBox <gi...@apache.org>.
nhhockeyplayer edited a comment 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-611613961
my whole idea is we shouldnt have to go into the manhole and even touch the build.gradle file
whats wrong with that
for a working product
no assembly required?
it should be smart enough
if you try
ionic cordova prepare
you will see that lonic is resetting and hardwiring the build.gradle file to version 3.3.0 of the android gradle plugin and that presents a show stopper for android studio and the build process iself
cant build
----------------------------------------------------------------
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
[GitHub] [cordova] nhhockeyplayer edited a comment on issue #209: ionic
cordova platform add - fails to update build.gradle with proper android
gradle plugin
Posted by GitBox <gi...@apache.org>.
nhhockeyplayer edited a comment 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-611611959
No one wants to be sucked into he android studio plethora of build errors
manually or with capacitor
at least I dont
its never ending and agony
running the archetypes form command line (if they did what they were suppsose to do) would be a clean product
I aware someone will take offense
is anyone aware of the endless amount of build errors and issues that are miles long and the numerous amounts of same on the internet that span years and years
Im trying to help
no on wants to be caught up in build hell and its been this way forever
----------------------------------------------------------------
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
[GitHub] [cordova] nhhockeyplayer edited a comment on issue #209: ionic
cordova platform add - fails to update build.gradle with proper android
gradle plugin
Posted by GitBox <gi...@apache.org>.
nhhockeyplayer edited a comment 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-611662936
pinned is a nice catch phrase
i can spot hardwiring after 30 yrs of industry no offense but it pulls out the legs on automation and obviously a chronic build problem countless engineers cannot build fluidly
forking to fix is another unacceptable avenue
its too much work
why cant it just work
thank you for the feedback
----------------------------------------------------------------
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
[GitHub] [cordova] nhhockeyplayer commented on issue #209: ionic cordova
platform add - fails to update build.gradle with proper android gradle plugin
Posted by GitBox <gi...@apache.org>.
nhhockeyplayer 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-611613961
my whole idea is we shouldnt have to go into the manhole and even touch the build.gradle file
whats wrong with that
for a working product
no assembly required?
----------------------------------------------------------------
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
[GitHub] [cordova] nhhockeyplayer commented on issue #209: ionic cordova
platform add - fails to update build.gradle with proper android gradle plugin
Posted by GitBox <gi...@apache.org>.
nhhockeyplayer 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-611611959
No one wants to be sucked into he android studio plethora of build errors
manually or with capacitor
at lest I dont its never ending agony
running the archetypes form command line (if they did what they were suppsose to do) would be a clean product
I aware someone will take offense
is anyone aware of the endless amount of build errors and issues that are miles long and the numerous amounts of same on the internet that span years and years
Im trying to help
no on wants to be caught up in build hell and its been this way forever
----------------------------------------------------------------
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
[GitHub] [cordova] breautek commented on issue #209: ionic cordova platform
add - fails to update build.gradle with proper android gradle plugin
Posted by GitBox <gi...@apache.org>.
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