New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error happening in cordova build android #8408

Closed
tgeorge1 opened this Issue Feb 22, 2017 · 3 comments

Comments

Projects
None yet
5 participants
@tgeorge1

tgeorge1 commented Feb 22, 2017

I am getting following error even after adding gradle.properties file in /user/.gradle and /ProjectName/platforms/android

I am creating project through GitCMD in my windows machine.

cordova version:6.5.0

ProjectOne>cordova requirements

Requirements check results for android:
Java JDK: installed 1.8.0
Android SDK: installed true
Android target: installed android-23,android-24,android-25
Gradle: installed


ProjectOne>cordova build android
ANDROID_HOME=C:\Program Files (x86)\Android\android-sdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_121
Subproject Path: CordovaLib

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.2.1.
Required by:
:android:unspecified
> Could not resolve com.android.tools.build:gradle:2.2.1.
> Could not get resource 'https://jcenter.bintray.com/com/android/tools/build/gradle/2.2.1/gradle-2.2.1.pom'.
> Could not GET 'https://jcenter.bintray.com/com/android/tools/build/gradle/2.2.1/gradle-2.2.1.pom'.
> Connect to 10.68.248.34:80 [/10.68.248.34] failed: Connection timed out: connect

  • 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: 24.382 secs
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.2.1.
Required by:
:android:unspecified
> Could not resolve com.android.tools.build:gradle:2.2.1.
> Could not get resource 'https://jcenter.bintray.com/com/android/tools/build/gradle/2.2.1/gradle-2.2.1.pom'.
> Could not GET 'https://jcenter.bintray.com/com/android/tools/build/gradle/2.2.1/gradle-2.2.1.pom'.
> Connect to 10.68.248.34:80 [/10.68.248.34] failed: Connection timed out: connect

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

@abernix

This comment has been minimized.

Member

abernix commented Apr 19, 2017

Can you try this again using Cordova 6.4.0 (which is what Meteor uses and is packaged internally)? If you still experience the problem, perhaps try using PowerShell or normal cmd.exe? And lastly, make sure you're using a version of Android SDK before 25.3.x because of #8464 (currently still unresolved).

@mortezaahashemi

This comment has been minimized.

mortezaahashemi commented Apr 23, 2017

I've got the same problem
How can this problem be solved?

@hwillson

This comment has been minimized.

Member

hwillson commented Oct 5, 2017

We haven't heard back regarding the comments made in #8408 (comment), so closing for now.

@hwillson hwillson closed this Oct 5, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment