android - 在mac下使用cordova创建apk,出现错误
天蓬老师
天蓬老师 2017-04-18 09:15:12
0
0
701

在mac下使用cordova创建apk,出现错误



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 download lint-api.jar (com.android.tools.lint:lint-api:25.2.1)
      > Could not get resource 'https://jcenter.bintray.com/com/android/tools/lint/lint-api/25.2.1/lint-api-25.2.1.jar'.
         > Could not GET 'https://jcenter.bintray.com/com/android/tools/lint/lint-api/25.2.1/lint-api-25.2.1.jar'.
            > Connect to akamai.bintray.com:443 [akamai.bintray.com/223.119.205.17] failed: Operation timed out (Connection timed out)

* 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: 1 mins 18.57 secs
Command finished with error code 1: /Users/pengting/iOS/my_mobile_app/platforms/android/gradlew cdvBuildDebug,-b,/Users/pengting/iOS/my_mobile_app/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Dorg.gradle.jvmargs=-Xmx2048m,-Pandroid.useDeprecatedNdk=true
Error: /Users/pengting/iOS/my_mobile_app/platforms/android/gradlew: 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 download lint-api.jar (com.android.tools.lint:lint-api:25.2.1)
      > Could not get resource 'https://jcenter.bintray.com/com/android/tools/lint/lint-api/25.2.1/lint-api-25.2.1.jar'.
         > Could not GET 'https://jcenter.bintray.com/com/android/tools/lint/lint-api/25.2.1/lint-api-25.2.1.jar'.
            > Connect to akamai.bintray.com:443 [akamai.bintray.com/223.119.205.17] failed: Operation timed out (Connection timed out)

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    at ChildProcess.whenDone (/Users/pengting/iOS/my_mobile_app/platforms/android/cordova/node_modules/cordova-common/src/superspawn.js:169: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)

bintray.com 这个怎么翻墙都下不了啊

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

모든 응답(0)
최신 다운로드
더>
웹 효과
웹사이트 소스 코드
웹사이트 자료
프론트엔드 템플릿