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

 手机用户2502857731 发布于 2022-10-27 20:15

在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 这个怎么翻墙都下不了啊

撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有