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/10 00:58:55 UTC

[GitHub] [cordova-android] nhhockeyplayer opened a new issue #947: ionic cordova platform add - fails to update build.gradle with proper android gradle plugin

nhhockeyplayer opened a new issue #947: ionic cordova platform add - fails to update build.gradle with proper android gradle plugin
URL: https://github.com/apache/cordova-android/issues/947
 
 
   # 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 version 3.6.4
   
   this is the problem causing builds to fail
   android gradle plugin version 3.3.0 (suppose to be 3.6.2 in sync with android studio)
   
   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 100% completely with the command line CLI and never even launch android studio AND THIS IS FEASIBLE and has been
   
   I shouldnt have to launch the android project in android studio to tell me the cordova platform archetype missed the version on the android gradle plugin but thats the ONLY way I detected this
   
   
   

----------------------------------------------------------------
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-android] nhhockeyplayer removed a comment on issue #947: ionic cordova platform add - fails to update build.gradle with proper android gradle plugin

Posted by GitBox <gi...@apache.org>.
nhhockeyplayer removed a comment on issue #947: ionic cordova platform add - fails to update build.gradle with proper android gradle plugin
URL: https://github.com/apache/cordova-android/issues/947#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-android] nhhockeyplayer removed a comment on issue #947: ionic cordova platform add - fails to update build.gradle with proper android gradle plugin

Posted by GitBox <gi...@apache.org>.
nhhockeyplayer removed a comment on issue #947: ionic cordova platform add - fails to update build.gradle with proper android gradle plugin
URL: https://github.com/apache/cordova-android/issues/947#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-android] nhhockeyplayer removed a comment on issue #947: ionic cordova platform add - fails to update build.gradle with proper android gradle plugin

Posted by GitBox <gi...@apache.org>.
nhhockeyplayer removed a comment on issue #947: ionic cordova platform add - fails to update build.gradle with proper android gradle plugin
URL: https://github.com/apache/cordova-android/issues/947#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
   

----------------------------------------------------------------
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-android] nhhockeyplayer removed a comment on issue #947: ionic cordova platform add - fails to update build.gradle with proper android gradle plugin

Posted by GitBox <gi...@apache.org>.
nhhockeyplayer removed a comment on issue #947: ionic cordova platform add - fails to update build.gradle with proper android gradle plugin
URL: https://github.com/apache/cordova-android/issues/947#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-android] nhhockeyplayer removed a comment on issue #947: ionic cordova platform add - fails to update build.gradle with proper android gradle plugin

Posted by GitBox <gi...@apache.org>.
nhhockeyplayer removed a comment on issue #947: ionic cordova platform add - fails to update build.gradle with proper android gradle plugin
URL: https://github.com/apache/cordova-android/issues/947#issuecomment-612078046
 
 
   My standards are of the highest premium and I remain dis-impressed spending weeks on build issues
   I come form the X-Wiindows days at DEC when MIT released a solid product to the public domain that was bullet proof and was used commercially in manufacturing everywhere including Johnson & Johnson Orthopaedics.
   
   I have little respect for google proof is in the pudding and they could have only nabbed javascript and outperformed their rivals in Switzerland by dong it all as open source. But they couldnt even do that Microsoft had to bail them out with typescript and done it the right way made in usa and still doing what american innovation is SUPPOSE to  be doing.
   
   WORKAROUND (to avoid the multidimensional train-wreck of hardwired dependencies at all flanks)
   uninstall android stdio and back that down to version 3.3.0 and no need to desecrate the archetypes
   

----------------------------------------------------------------
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-android] rolinger commented on issue #947: ionic cordova platform add - fails to update build.gradle with proper android gradle plugin

Posted by GitBox <gi...@apache.org>.
rolinger commented on issue #947: ionic cordova platform add - fails to update build.gradle with proper android gradle plugin
URL: https://github.com/apache/cordova-android/issues/947#issuecomment-615543635
 
 
   @breautek  - so my install is Cordova@9, and Cordova-Android@8.1 - what gradle version should my project be on?  All was fine running 4.10.3 until I needed that damn Android Studio Image Asset tool.  Now that I have all the icons it might just be better if I use 4.10.3, however because cli compile fails saying it needs 5.1.1 - how can I change the regular project to go back to using 4.10.3?
   
   I fear trying to force my project to 5.1.1 is just going to open a can of worms I won't be able to fix.

----------------------------------------------------------------
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-android] nhhockeyplayer edited a comment on issue #947: 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 #947: ionic cordova platform add - fails to update build.gradle with proper android gradle plugin
URL: https://github.com/apache/cordova-android/issues/947#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
   

----------------------------------------------------------------
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-android] rolinger commented on issue #947: ionic cordova platform add - fails to update build.gradle with proper android gradle plugin

Posted by GitBox <gi...@apache.org>.
rolinger commented on issue #947: ionic cordova platform add - fails to update build.gradle with proper android gradle plugin
URL: https://github.com/apache/cordova-android/issues/947#issuecomment-615541711
 
 
   I have never imported my project into Android Studio until today.  I needed the Image Asset tool to help create proper round icons need for various devices.  When I imported my project it said I need to update my gradle to 5.1.1 - so I did.
   
   After I created all my icons and updated my cordova projects config.xml file with the necessary resource-file configs - I then compile my project from command line again and now I get a gradle error:
   
   ```
   * What went wrong:
   A problem occurred evaluating project ':app'.
   > Failed to apply plugin [id 'com.android.application']
      > Minimum supported Gradle version is 5.1.1. Current version is 4.10.3. If using the gradle wrapper, try editing the distributionUrl in c:\Users\RPO\dev\myApp\gradle\wrapper\gradle-wrappe
   r.properties to gradle-5.1.1-all.zip
   ```
   
   The problem is, that path doesn't exist in my root project folder - there is no `/gradle/` folder in my project root.  There is a `.gradle` folder in my root /users directory - but I can't find a `gradle-wrapper.properties` file anywhere.

----------------------------------------------------------------
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-android] rolinger commented on issue #947: ionic cordova platform add - fails to update build.gradle with proper android gradle plugin

Posted by GitBox <gi...@apache.org>.
rolinger commented on issue #947: ionic cordova platform add - fails to update build.gradle with proper android gradle plugin
URL: https://github.com/apache/cordova-android/issues/947#issuecomment-615545243
 
 
   @breautek  - thanks.  Going to try fixing this and if not success will move to slack.   

----------------------------------------------------------------
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-android] nhhockeyplayer commented on issue #947: ionic cordova platform add - fails to update build.gradle with proper android gradle plugin

Posted by GitBox <gi...@apache.org>.
nhhockeyplayer commented on issue #947: ionic cordova platform add - fails to update build.gradle with proper android gradle plugin
URL: https://github.com/apache/cordova-android/issues/947#issuecomment-612078046
 
 
   My standards are of the highest premium
   I come form the X-Wiindows days at DEC when MIT released a solid product to the public domain that was bullet proof and was used commercially in manufacturing everywhere including Johnson & Johnson Orthopaedics.
   
   I have little respect for google proof is in the pudding and they could have only nabbed javascript and outperformed their rivals in Switzerland by dong it all as open source. But they couldnt even do that Microsoft had to bail them out with typescript and done it the right way made in usa and still doing what american innovation is SUPPOSE to  be doing.
   
   WORKAROUND (to avoid the multidimensional train-wreck of hardwired dependencies at all flanks)
   uninstall android stdio and back that down to version 3.3.0 and no need to desecrate the archetypes
   

----------------------------------------------------------------
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-android] raphinesse commented on issue #947: ionic cordova platform add - fails to update build.gradle with proper android gradle plugin

Posted by GitBox <gi...@apache.org>.
raphinesse commented on issue #947: ionic cordova platform add - fails to update build.gradle with proper android gradle plugin
URL: https://github.com/apache/cordova-android/issues/947#issuecomment-611994856
 
 
   > forking to fix is another unacceptable avenue
   > its too much work
   
   It was proposed as a workaround. Take it or leave it.
   
   > why cant it just work
   
   The age-old question
   
   ---
   
   I'm not so proficient with the android build, but can the gradle plugin version be overridden with [build-extras.gradle](https://cordova.apache.org/docs/en/latest/guide/platforms/android/#extending-buildgradle)?

----------------------------------------------------------------
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-android] breautek commented on issue #947: ionic cordova platform add - fails to update build.gradle with proper android gradle plugin

Posted by GitBox <gi...@apache.org>.
breautek commented on issue #947: ionic cordova platform add - fails to update build.gradle with proper android gradle plugin
URL: https://github.com/apache/cordova-android/issues/947#issuecomment-612168165
 
 
   I'm still able to build successfully with a simple android app with android studio 3.6.2, with the gradle plugin 3.3.0.
   
   Which means there is another variable at play that is currently unknown. If you can provide a [minimum reproduction app](https://github.com/apache/cordova-contribute/blob/master/create-reproduction.md) that may help us identify the exact cause.
   
   Do note that in my tests I'm not using ionic. If the problem only presents itself with ionic, then going through ionic's channels will be more appropriate.

----------------------------------------------------------------
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-android] nhhockeyplayer removed a comment on issue #947: ionic cordova platform add - fails to update build.gradle with proper android gradle plugin

Posted by GitBox <gi...@apache.org>.
nhhockeyplayer removed a comment on issue #947: ionic cordova platform add - fails to update build.gradle with proper android gradle plugin
URL: https://github.com/apache/cordova-android/issues/947#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-android] breautek edited a comment on issue #947: ionic cordova platform add - fails to update build.gradle with proper android gradle plugin

Posted by GitBox <gi...@apache.org>.
breautek edited a comment on issue #947: ionic cordova platform add - fails to update build.gradle with proper android gradle plugin
URL: https://github.com/apache/cordova-android/issues/947#issuecomment-615543227
 
 
   @rolinger You can try using `cordova-android@nightly` as a test to see if it solves your problem. cordova-android 9.0 (unreleased, no release eta) is refactored to support gradle 5.x+ (it actually uses 6.1...).
   
   Additionally an unrelated PR was recently landed in master that bumps the gradle plugin to 3.5.3 (although not to the latest 3.6.0...) which may have solved this issue as well.

----------------------------------------------------------------
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-android] breautek commented on issue #947: ionic cordova platform add - fails to update build.gradle with proper android gradle plugin

Posted by GitBox <gi...@apache.org>.
breautek commented on issue #947: ionic cordova platform add - fails to update build.gradle with proper android gradle plugin
URL: https://github.com/apache/cordova-android/issues/947#issuecomment-615543227
 
 
   @rolinger You can try using `cordova-android@nightly` as a test to see if it solves your problem. 9.0 (unreleased, no release eta) is refactored to support gradle 5.x+ (it actually uses 6.1...).
   
   Additionally an unrelated PR was recently landed in master that bumps the gradle plugin to 3.5.3 (although not to the latest 3.6.0...) which may have solved this issue as well.

----------------------------------------------------------------
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-android] nhhockeyplayer removed a comment on issue #947: ionic cordova platform add - fails to update build.gradle with proper android gradle plugin

Posted by GitBox <gi...@apache.org>.
nhhockeyplayer removed a comment on issue #947: ionic cordova platform add - fails to update build.gradle with proper android gradle plugin
URL: https://github.com/apache/cordova-android/issues/947#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-android] nhhockeyplayer removed a comment on issue #947: ionic cordova platform add - fails to update build.gradle with proper android gradle plugin

Posted by GitBox <gi...@apache.org>.
nhhockeyplayer removed a comment on issue #947: ionic cordova platform add - fails to update build.gradle with proper android gradle plugin
URL: https://github.com/apache/cordova-android/issues/947#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-android] nhhockeyplayer removed a comment on issue #947: ionic cordova platform add - fails to update build.gradle with proper android gradle plugin

Posted by GitBox <gi...@apache.org>.
nhhockeyplayer removed a comment on issue #947: ionic cordova platform add - fails to update build.gradle with proper android gradle plugin
URL: https://github.com/apache/cordova-android/issues/947#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-android] breautek commented on issue #947: ionic cordova platform add - fails to update build.gradle with proper android gradle plugin

Posted by GitBox <gi...@apache.org>.
breautek commented on issue #947: ionic cordova platform add - fails to update build.gradle with proper android gradle plugin
URL: https://github.com/apache/cordova-android/issues/947#issuecomment-615544747
 
 
   Untested, but if you open up `platforms/android/app/build.gradle`
   
   You should have..
   
   ```
   buildscript {
       repositories {
           mavenCentral()
           google()
           jcenter()
       }
   
       dependencies {
           classpath 'com.android.tools.build:gradle:3.3.0'
       }
   }
   ```
   
   Probably around line 52. `com.android.tools.build:gradle` should be pinned to `3.3.0`
   
   Additionally, at around line 74, you should have:
   
   ```
   task wrapper(type: Wrapper) {
       gradleVersion = '4.10.3'
   }
   ```
   
   Do note that you're line numbers will be slightly different cause I'm referencing a custom cordova-android build.
   
   If you open the android project in android studio, one of the things it will do is detect that you're using an old `com.android.tools.build:gradle` (the Android Gradle Plugin), and prompt you to upgrade it, so this is likely what you were seeing. `cordova-android@8.x` expects this plugin to be set to version `3.3.0`.
   
   If you need further assistance, I would invite you to our [slack](http://slack.cordova.io/) so we can stop hijacking this thread, thanks.

----------------------------------------------------------------
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-android] nhhockeyplayer edited a comment on issue #947: 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 #947: ionic cordova platform add - fails to update build.gradle with proper android gradle plugin
URL: https://github.com/apache/cordova-android/issues/947#issuecomment-612078046
 
 
   My standards are of the highest premium and I remain dis-impressed spending weeks on build issues
   I come form the X-Wiindows days at DEC when MIT released a solid product to the public domain that was bullet proof and was used commercially in manufacturing everywhere including Johnson & Johnson Orthopaedics.
   
   I have little respect for google proof is in the pudding and they could have only nabbed javascript and outperformed their rivals in Switzerland by dong it all as open source. But they couldnt even do that Microsoft had to bail them out with typescript and done it the right way made in usa and still doing what american innovation is SUPPOSE to  be doing.
   
   WORKAROUND (to avoid the multidimensional train-wreck of hardwired dependencies at all flanks)
   uninstall android stdio and back that down to version 3.3.0 and no need to desecrate the archetypes
   

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