Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-8143

Android Studio update combined with Build Tools upgrade breaks 4.0 build

VotersWatch issueWatchersLinkUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 4.0.0
    • Fix Version/s: 4.0.0
    • Component/s: cordova-android
    • Labels:
      None

      Description

      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:

      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
      

      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.

        Attachments

          Activity

            People

            • Assignee:
              iclelland Ian Clelland
              Reporter:
              bowserj Joey Robert Bowser

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment