You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Cássio Hideki Kanashiro Oseki (JIRA)" <ji...@apache.org> on 2016/09/05 21:44:20 UTC

[jira] [Created] (CB-11808) cordova prepare generates build files with invalid gradle dependencies

Cássio Hideki Kanashiro Oseki created CB-11808:
--------------------------------------------------

             Summary: cordova prepare generates build files with invalid gradle dependencies
                 Key: CB-11808
                 URL: https://issues.apache.org/jira/browse/CB-11808
             Project: Apache Cordova
          Issue Type: Bug
      Security Level: Public (Anyone can view this level - this is the default.)
          Components: CLI
    Affects Versions: 6.3.1
         Environment: $ uname -a
Linux artemis 4.6.7-300.fc24.x86_64 #1 SMP Wed Aug 17 18:48:43 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
Fedora 24 
$ cordova --version
6.3.1
            Reporter: Cássio Hideki Kanashiro Oseki


Following the tutorial provided on the main Apache Cordova landing page, with "android" as platform, results in an unsupported Gradle version not running because of incomplete dependency resolution.

[empjustine@artemis conservo]$ ANDROID_HOME=$HOME/Android/Sdk/ $HOME/node_modules/.bin/cordova build
ANDROID_HOME=/home/empjustine/Android/Sdk/
JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.102-1.b14.fc24.x86_64

FAILURE: Build failed with an exception.

* Where:
Build file '/home/empjustine/conservo/platforms/android/build.gradle' line: 20

* What went wrong:
A problem occurred evaluating root project 'android'.
> Failed to apply plugin [id 'com.android.application']
   > Minimum supported Gradle version is 2.14.1.  Current version is 2.13. If using the gradle wrapper, try editing the distributionUrl in /home/empjustine/conservo/gradle/wrapper/gradle-wrapper.properties to gradle-2.14.1-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: 6.412 secs
Error: /home/empjustine/conservo/platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

* Where:
Build file '/home/empjustine/conservo/platforms/android/build.gradle' line: 20

* What went wrong:
A problem occurred evaluating root project 'android'.
> Failed to apply plugin [id 'com.android.application']
   > Minimum supported Gradle version is 2.14.1.  Current version is 2.13. If using the gradle wrapper, try editing the distributionUrl in /home/empjustine/conservo/gradle/wrapper/gradle-wrapper.properties to gradle-2.14.1-all.zip

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

[empjustine@artemis conservo]$ head /home/empjustine/conservo/gradle/wrapper/gradle-wrapper.properties
head: cannot open '/home/empjustine/conservo/gradle/wrapper/gradle-wrapper.properties' for reading: No such file or directory




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org