[
https://issues.apache.org/jira/browse/CB-12007?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
jcesarmobile closed CB-12007.
-----------------------------
Resolution: Cannot Reproduce
Can't reproduce with latest version, it's probably fixed.
Please, if you still find problems with latest Cordova create a new issue.
> Build does fail / Could not resolve com.android.tools.build:gradle:2.1.0
> ------------------------------------------------------------------------
>
> Key: CB-12007
> URL: https://issues.apache.org/jira/browse/CB-12007
> Project: Apache Cordova
> Issue Type: Bug
> Components: cordova-cli
> Reporter: Sven Siwek
> Priority: Major
>
> I try to build simple kitchensink demo/template.
> C:\Users\siw\workspace_neon\examples\kitchensink-cordova>cordova build
> android -
> -release --verbose
> No scripts found for hook "before_build".
> No scripts found for hook "before_prepare".
> Checking config.xml for saved platforms that haven't been added to the project
> Checking for any plugins added to the project that have not been installed in
> an
> droid platform
> No differences found between plugins added to project and installed in
> android p
> latform. Continuing...
> Generating platform-specific config.xml from defaults for android at
> C:\Users\si
> w\workspace_neon\examples\kitchensink-cordova\platforms\android\res\xml\config.x
> ml
> Merging project's config.xml into platform-specific android config.xml
> Merging and updating files from [www, platforms\android\platform_www] to
> platfor
> ms\android\assets\www
> Wrote out android application name "kitchensink-cordova" to
> C:\Users\siw\workspa
> ce_neon\examples\kitchensink-cordova\platforms\android\res\values\strings.xml
> android-versionCode not found in config.xml. Generating a code based on
> version
> in config.xml (2.0.0): 20000
> Wrote out Android package name "org.jboss.quickstarts.wfk.kitchensinkcordova"
> to
>
> C:\Users\siw\workspace_neon\examples\kitchensink-cordova\platforms\android\src\
> org\jboss\quickstarts\wfk\kitchensinkcordova\MainActivity.java
> This app does not have launcher icons defined
> This app does not have splash screens defined
> Prepared android project successfully
> No scripts found for hook "after_prepare".
> Checking config.xml for saved plugins that haven't been added to the project
> No scripts found for hook "before_compile".
> ANDROID_HOME=C:\Users\siw\android-sdks
> JAVA_HOME=C:\Program Files\java\jdk1.7.0_51
> Running command: cmd "/s /c
> "C:\Users\siw\workspace_neon\examples\kitchensink-co
> rdova\platforms\android\gradlew.bat cdvBuildRelease -b
> C:\Users\siw\workspace_ne
> on\examples\kitchensink-cordova\platforms\android\build.gradle
> -Dorg.gradle.daem
> on=true -Pandroid.useDeprecatedNdk=true""
> 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:2.1.0.
> Required by:
> :android:unspecified
> > Could not resolve com.android.tools.build:gradle:2.1.0.
> > Could not get resource
> 'https://repo1.maven.org/maven2/com/android/to
> ols/build/gradle/2.1.0/gradle-2.1.0.pom'.
> > Could not GET
> 'https://repo1.maven.org/maven2/com/android/tools/bu
> ild/gradle/2.1.0/gradle-2.1.0.pom'.
> > repo1.maven.org
> > Could not resolve com.android.tools.build:gradle:2.1.0.
> > Could not get resource
> 'https://jcenter.bintray.com/com/android/tools
> /build/gradle/2.1.0/gradle-2.1.0.pom'.
> > Could not GET
> 'https://jcenter.bintray.com/com/android/tools/build
> /gradle/2.1.0/gradle-2.1.0.pom'.
> > jcenter.bintray.com
> * 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: 4.412 secs
> Command finished with error code 1: cmd /s /c
> "C:\Users\siw\workspace_neon\examp
> les\kitchensink-cordova\platforms\android\gradlew.bat cdvBuildRelease -b
> C:\User
> s\siw\workspace_neon\examples\kitchensink-cordova\platforms\android\build.gradle
> -Dorg.gradle.daemon=true -Pandroid.useDeprecatedNdk=true"
> Error: cmd: Command failed with exit code 1 Error output:
> 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:2.1.0.
> Required by:
> :android:unspecified
> > Could not resolve com.android.tools.build:gradle:2.1.0.
> > Could not get resource
> 'https://repo1.maven.org/maven2/com/android/to
> ols/build/gradle/2.1.0/gradle-2.1.0.pom'.
> > Could not GET
> 'https://repo1.maven.org/maven2/com/android/tools/bu
> ild/gradle/2.1.0/gradle-2.1.0.pom'.
> > repo1.maven.org
> > Could not resolve com.android.tools.build:gradle:2.1.0.
> > Could not get resource
> 'https://jcenter.bintray.com/com/android/tools
> /build/gradle/2.1.0/gradle-2.1.0.pom'.
> > Could not GET
> 'https://jcenter.bintray.com/com/android/tools/build
> /gradle/2.1.0/gradle-2.1.0.pom'.
> > jcenter.bintray.com
> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or
> --debug
> option to get more log output.
> at ChildProcess.whenDone
> (C:\Users\siw\workspace_neon\examples\kitchensink-c
> ordova\platforms\android\cordova\node_modules\cordova-common\src\superspawn.js:1
> 69:23)
> at emitTwo (events.js:87:13)
> at ChildProcess.emit (events.js:172:7)
> at maybeClose (internal/child_process.js:829:16)
> at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]