[
https://issues.apache.org/jira/browse/CB-8143?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14241122#comment-14241122
]
Ian Clelland commented on CB-8143:
----------------------------------
Closing my Android Studio project prompts me to upgrade things:
Android SDK Tools: 24
Android SDK Platform: 21r2
Also
Google Repository, rev 14
Android Support Repository, rev 9
Google Inc. x85 System Image, Android 21, rev 3
Google APIs, Android 21
Intel x96 Emulator Accelerator (HAXM installer), rev 5.2
And with that, running "cordova build android" in the same directory I was
previously using starts to immediately download a new version of Gradle:
{code}
clelland@iclelland-macbookpro:~/Code/Cordova/newgradletest$ cordova build
android
Running command:
/Users/iclelland/Code/Cordova/newgradletest/platforms/android/cordova/build
Downloading https://services.gradle.org/distributions/gradle-2.2.1-all.zip
...........................................................................<snipped>
Unzipping
/Users/iclelland/.gradle/wrapper/dists/gradle-2.2.1-all/6dibv5rcnnqlfbq9klf8imrndn/gradle-2.2.1-all.zip
to
/Users/iclelland/.gradle/wrapper/dists/gradle-2.2.1-all/6dibv5rcnnqlfbq9klf8imrndn
Set executable permissions for:
/Users/iclelland/.gradle/wrapper/dists/gradle-2.2.1-all/6dibv5rcnnqlfbq9klf8imrndn/gradle-2.2.1/bin/gradle
FAILURE: Build failed with an exception.
* Where:
Build file
'/Users/iclelland/Code/Cordova/newgradletest/platforms/android/build.gradle'
line: 27
* What went wrong:
A problem occurred evaluating root project 'android'.
> Failed to apply plugin [id 'android']
> Gradle version 1.10 is required. Current version is 2.2.1. If using the
gradle wrapper, try editing the distributionUrl in
/Users/iclelland/Code/Cordova/newgradletest/gradle/wrapper/gradle-wrapper.properties
to gradle-1.10-all.zip
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.
BUILD FAILED
Total time: 1 mins 43.842 secs
/Users/iclelland/Code/Cordova/newgradletest/platforms/android/cordova/node_modules/q/q.js:126
throw e;
^
Error code 1 for command:
/Users/iclelland/Code/Cordova/newgradletest/platforms/android/gradlew with
args:
assembleDebug,-b,/Users/iclelland/Code/Cordova/newgradletest/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-x,lint,-x,lintVitalRelease,-x,compileLint,-x,copyReleaseLint,-x,copyDebugLint
Error:
/Users/iclelland/Code/Cordova/newgradletest/platforms/android/cordova/build:
Command failed with exit code 8
at ChildProcess.whenDone
(/Users/iclelland/Code/Cordova/cordova-lib/cordova-lib/src/cordova/superspawn.js:135:23)
at ChildProcess.emit (events.js:98:17)
at maybeClose (child_process.js:756:16)
at Process.ChildProcess._handle.onexit (child_process.js:823:5)
{code}
(not our finest error message)
> Android Studio update combined with Build Tools upgrade breaks 4.0 build
> ------------------------------------------------------------------------
>
> Key: CB-8143
> URL: https://issues.apache.org/jira/browse/CB-8143
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Affects Versions: 4.0.0
> Reporter: Joe Bowser
> Assignee: Ian Clelland
> Priority: Blocker
> Fix For: 4.0.0
>
>
> I just updated Android Studio to 1.0, which also now updates my Android
> Tools. That's pretty cool, except that it breaks everything we have for our
> gradle support:
> {code}
> FAILURE: Build failed with an exception.
> * Where:
> Build file '/Users/bowserj/UtahDemo/build.gradle' line: 27
> * What went wrong:
> A problem occurred evaluating root project 'UtahDemo'.
> > Failed to apply plugin [id 'android']
> > Gradle version 1.10 is required. Current version is 2.2.1. If using the
> gradle wrapper, try editing the distributionUrl in
> /Users/bowserj/UtahDemo/gradle/wrapper/gradle-wrapper.properties to
> gradle-1.10-all.zip
> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or
> --debug option to get more log output.
> BUILD FAILED
> Total time: 1.94 secs
> {code}
> This happens with all 4.0 projects. I've tried tweaking build.gradle to work
> with the right version, but I can see this severely aggravating users to no
> end.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]