cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rafael Soufraz (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CB-10665) Cordova build - Could not resolve com.android.tools.build:gradle:1.5.0
Date Mon, 22 Feb 2016 14:48:18 GMT

     [ https://issues.apache.org/jira/browse/CB-10665?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Rafael Soufraz updated CB-10665:
--------------------------------
    Description: 
After upgrading the cordova and the npm of my machine (Ubuntu 15.10) I can not build a new
project with the cordova. The build accuses an error in graddle.
I did some research and found some possible solutions. Solutions like changing the version
and url graddle repo. Anyway, it did not work.
I am using the cordova 6.0.0 and npm 1.4.21.
Below commands of fresh cordova app installation:

{quote}
soufraz@atlantis:~/Projects/apps$ cordova create test com.somename.test Test
Creating a new cordova project.
soufraz@atlantis:~/Projects/apps$ cd test/
soufraz@atlantis:~/Projects/apps/test$ cordova platform add android
Adding android project...
Creating Cordova project for the Android platform:
    Path: platforms/android
    Package: com.somename.test
    Name: Test
    Activity: MainActivity
    Android target: android-23
Android project created with cordova-android@5.1.0
Discovered plugin "cordova-plugin-whitelist" in config.xml. Installing to the project
Fetching plugin "cordova-plugin-whitelist@1" via npm
Installing "cordova-plugin-whitelist" for android

               This plugin is only applicable for versions of cordova-android greater than
4.0. If you have a previous platform version, you do *not* need this plugin since the whitelist
will be built in.

soufraz@atlantis:~/Projects/apps/test$ cordova build
ANDROID_HOME=/home/soufraz/Install/android-sdk-linux
JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all dependencies for configuration ':classpath'.
   > Could not resolve com.android.tools.build:gradle:1.5.0.
     Required by:
         :android:unspecified
      > Failure initializing default system SSL context

* 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: 0.769 secs
ERROR building one of the platforms: Error code 1 for command: /home/soufraz/Projects/apps/test/platforms/android/gradlew
with args: cdvBuildDebug,-b,/home/soufraz/Projects/apps/test/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true
You may not have the required environment or OS to build this project
Error: Error code 1 for command: /home/soufraz/Projects/apps/test/platforms/android/gradlew
with args: cdvBuildDebug,-b,/home/soufraz/Projects/apps/test/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true
{quote}

Extra informations:
- I have all android apis 19 - 24 installed.
- "cordova build android -- --ant" doesn't works too
- I've tested it with the java jdk 1.7 and 1.8
- All tries with --stacktrace/--debug/--info: [http://pastebin.com/nD6GNkbR]

  was:
After upgrading the cordova and the npm of my machine (Ubuntu 15.10) I can not build a new
project with the cordova. The build accuses an error in graddle.
I did some research and found some possible solutions. Solutions like changing the version
and url graddle repo. Anyway, it did not work.
I am using the cordova 6.0.0 and npm 1.4.21.
Below commands of fresh cordova app installation:

{quote}
soufraz@atlantis:~/Projects/apps$ cordova create test com.somename.test Test
Creating a new cordova project.
soufraz@atlantis:~/Projects/apps$ cd test/
soufraz@atlantis:~/Projects/apps/test$ cordova platform add android
Adding android project...
Creating Cordova project for the Android platform:
    Path: platforms/android
    Package: com.somename.test
    Name: Test
    Activity: MainActivity
    Android target: android-23
Android project created with cordova-android@5.1.0
Discovered plugin "cordova-plugin-whitelist" in config.xml. Installing to the project
Fetching plugin "cordova-plugin-whitelist@1" via npm
Installing "cordova-plugin-whitelist" for android

               This plugin is only applicable for versions of cordova-android greater than
4.0. If you have a previous platform version, you do *not* need this plugin since the whitelist
will be built in.

soufraz@atlantis:~/Projects/apps/test$ cordova build
ANDROID_HOME=/home/soufraz/Install/android-sdk-linux
JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all dependencies for configuration ':classpath'.
   > Could not resolve com.android.tools.build:gradle:1.5.0.
     Required by:
         :android:unspecified
      > Failure initializing default system SSL context

* 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: 0.769 secs
ERROR building one of the platforms: Error code 1 for command: /home/soufraz/Projects/apps/test/platforms/android/gradlew
with args: cdvBuildDebug,-b,/home/soufraz/Projects/apps/test/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true
You may not have the required environment or OS to build this project
Error: Error code 1 for command: /home/soufraz/Projects/apps/test/platforms/android/gradlew
with args: cdvBuildDebug,-b,/home/soufraz/Projects/apps/test/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true
{quote}

Extra informations:
- I have all android apis 19 - 24 installed.
- "cordova build android -- --ant" doesn't works too
- I've tested it with the java jdk 1.7 and 1.8
- All tries with --stacktrace/--debug/--info: pastebin.com/nD6GNkbR


> Cordova build - Could not resolve com.android.tools.build:gradle:1.5.0
> ----------------------------------------------------------------------
>
>                 Key: CB-10665
>                 URL: https://issues.apache.org/jira/browse/CB-10665
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, CordovaLib, Ubuntu
>    Affects Versions: 6.0.0
>         Environment: Ubuntu 15.10 x64, npm 1.4.21
>            Reporter: Rafael Soufraz
>            Assignee: Maxim Ermilov
>
> After upgrading the cordova and the npm of my machine (Ubuntu 15.10) I can not build
a new project with the cordova. The build accuses an error in graddle.
> I did some research and found some possible solutions. Solutions like changing the version
and url graddle repo. Anyway, it did not work.
> I am using the cordova 6.0.0 and npm 1.4.21.
> Below commands of fresh cordova app installation:
> {quote}
> soufraz@atlantis:~/Projects/apps$ cordova create test com.somename.test Test
> Creating a new cordova project.
> soufraz@atlantis:~/Projects/apps$ cd test/
> soufraz@atlantis:~/Projects/apps/test$ cordova platform add android
> Adding android project...
> Creating Cordova project for the Android platform:
>     Path: platforms/android
>     Package: com.somename.test
>     Name: Test
>     Activity: MainActivity
>     Android target: android-23
> Android project created with cordova-android@5.1.0
> Discovered plugin "cordova-plugin-whitelist" in config.xml. Installing to the project
> Fetching plugin "cordova-plugin-whitelist@1" via npm
> Installing "cordova-plugin-whitelist" for android
>                This plugin is only applicable for versions of cordova-android greater
than 4.0. If you have a previous platform version, you do *not* need this plugin since the
whitelist will be built in.
> soufraz@atlantis:~/Projects/apps/test$ cordova build
> ANDROID_HOME=/home/soufraz/Install/android-sdk-linux
> JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
> FAILURE: Build failed with an exception.
> * What went wrong:
> A problem occurred configuring root project 'android'.
> > Could not resolve all dependencies for configuration ':classpath'.
>    > Could not resolve com.android.tools.build:gradle:1.5.0.
>      Required by:
>          :android:unspecified
>       > Failure initializing default system SSL context
> * 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: 0.769 secs
> ERROR building one of the platforms: Error code 1 for command: /home/soufraz/Projects/apps/test/platforms/android/gradlew
with args: cdvBuildDebug,-b,/home/soufraz/Projects/apps/test/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true
> You may not have the required environment or OS to build this project
> Error: Error code 1 for command: /home/soufraz/Projects/apps/test/platforms/android/gradlew
with args: cdvBuildDebug,-b,/home/soufraz/Projects/apps/test/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true
> {quote}
> Extra informations:
> - I have all android apis 19 - 24 installed.
> - "cordova build android -- --ant" doesn't works too
> - I've tested it with the java jdk 1.7 and 1.8
> - All tries with --stacktrace/--debug/--info: [http://pastebin.com/nD6GNkbR]



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


Mime
View raw message