hi i am using android studio 3.2 and lastest ndk and when i am trying to generate prebuild cocos2d-x libs from my mac i am unable to generate prebuild libs for android but its working fine for ios can someone please tell me whats wrong in my setup.
- android studio 3.2
2, gradle 3.1 - latest ndk version
getting the below error using command cocos gen-libs -p android -m release
FAILURE: Build failed with an exception.
- What went wrong:
A problem occurred configuring root project ‘proj.android’.
Could not resolve all artifacts for configuration ‘:classpath’.
Could not resolve org.apache.httpcomponents:httpmime:4.1.
Required by:
project : > com.android.tools.build:gradle:3.1.0 > com.android.tools.build:gradle-core:3.1.0 > com.android.tools.build:builder:3.1.0 > com.android.tools:sdklib:26.1.0
Could not resolve org.apache.httpcomponents:httpmime:4.1.
Could not get resource ‘https://jcenter.bintray.com/org/apache/httpcomponents/httpmime/4.1/httpmime-4.1.pom’.
Could not HEAD ‘https://jcenter.bintray.com/org/apache/httpcomponents/httpmime/4.1/httpmime-4.1.pom’.
Connection reset
Could not resolve commons-logging:commons-logging:1.1.1.
Required by:
project : > com.android.tools.build:gradle:3.1.0 > com.android.tools.build:gradle-core:3.1.0 > com.android.tools.build:builder:3.1.0 > com.android.tools:sdklib:26.1.0 > org.apache.httpcomponents:httpclient:4.2.6
Could not resolve commons-logging:commons-logging:1.1.1.
Could not get resource ‘https://jcenter.bintray.com/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.pom’.
Could not HEAD ‘https://jcenter.bintray.com/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.pom’.
Connection reset
-
Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output. Run with --scan to get full insights. -
Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
See https://docs.gradle.org/4.6/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 10s
VCS Checkout Cache (/Users/manish/Documents/crossPlatfrom/cocos2d-x-3.2/tests/cpp-empty-test/proj.android/.gradle/vcsWorkingDirs) has not been cleaned up in 0 days
Error running command, return code: 1.
Error running command, return code: 14.