gpt4 book ai didi

cordova - 无法解析配置 ':app:debugCompileClasspath' 的所有文件

转载 作者:行者123 更新时间:2023-12-04 02:20:42 29 4
gpt4 key购买 nike

不好意思,我尝试用命令构建一个APK

ionic cordova build android --debug
FAILURE: Build failed with an exception.
  • 什么地方出了错:
    无法解析配置 ':app:debugCompileClasspath' 的所有文件。

    Could not find play-services-auth.aar (com.google.android.gms:play-services-auth:11.8.0). Searched in the following locations: https://jcenter.bintray.com/com/google/android/gms/play-services-auth/11.8.0/play-services-auth-11.8.0.aar Could not find play-services-identity.aar (com.google.android.gms:play-services-identity:11.8.0). Searched in the following locations: https://jcenter.bintray.com/com/google/android/gms/play-services-identity/11.8.0/play-services-identity-11.8.0.aar Could not find play-services-auth-api-phone.aar (com.google.android.gms:play-services-auth-api-phone:11.8.0). Searched in the following locations: https://jcenter.bintray.com/com/google/android/gms/play-services-auth-api-phone/11.8.0/play-services-auth-api-phone-11.8.0.aar Could not find play-services-auth-base.aar (com.google.android.gms:play-services-auth-base:11.8.0). Searched in the following locations: https://jcenter.bintray.com/com/google/android/gms/play-services-auth-base/11.8.0/play-services-auth-base-11.8.0.aar Could not find play-services-identity-license.aar (com.google.android.gms:play-services-identity-license:11.8.0). Searched in the following locations: https://jcenter.bintray.com/com/google/android/gms/play-services-identity-license/11.8.0/play-services-identity-license-11.8.0.aar Could not find play-services-auth-api-phone-license.aar (com.google.android.gms:play-services-auth-api-phone-license:11.8.0). Searched in the following locations: https://jcenter.bintray.com/com/google/android/gms/play-services-auth-api-phone-license/11.8.0/play-services-auth-api-phone-license-11.8.0.aar Could not find play-services-auth-base-license.aar (com.google.android.gms:play-services-auth-base-license:11.8.0). Searched in the following locations: https://jcenter.bintray.com/com/google/android/gms/play-services-auth-base-license/11.8.0/play-services-auth-base-license-11.8.0.aar

  • 尝试:
    使用 --stacktrace 选项运行以获取堆栈跟踪。使用 --info 或 --debug 选项运行以获得更多日志输出。
  • https://help.gradle.org 获得更多帮助

  • 13 秒内构建失败
    14 项可操作的任务:1 项已执行,13 项是最新的
    (节点:440)UnhandledPromiseRejectionWarning:错误:/home/alain/PuntoPro/PuntoPro/platforms/android/gradlew:命令失败,退出代码1错误输出:
    FAILURE:构建失败,出现异常。
  • 什么地方出了错:
    无法解析配置 ':app:debugCompileClasspath' 的所有文件。

    Could not find play-services-auth.aar (com.google.android.gms:play-services-auth:11.8.0). Searched in the following locations: https://jcenter.bintray.com/com/google/android/gms/play-services-auth/11.8.0/play-services-auth-11.8.0.aar Could not find play-services-identity.aar (com.google.android.gms:play-services-identity:11.8.0). Searched in the following locations: https://jcenter.bintray.com/com/google/android/gms/play-services-identity/11.8.0/play-services-identity-11.8.0.aar Could not find play-services-auth-api-phone.aar (com.google.android.gms:play-services-auth-api-phone:11.8.0). Searched in the following locations: https://jcenter.bintray.com/com/google/android/gms/play-services-auth-api-phone/11.8.0/play-services-auth-api-phone-11.8.0.aar Could not find play-services-auth-base.aar (com.google.android.gms:play-services-auth-base:11.8.0). Searched in the following locations: https://jcenter.bintray.com/com/google/android/gms/play-services-auth-base/11.8.0/play-services-auth-base-11.8.0.aar Could not find play-services-identity-license.aar (com.google.android.gms:play-services-identity-license:11.8.0). Searched in the following locations: https://jcenter.bintray.com/com/google/android/gms/play-services-identity-license/11.8.0/play-services-identity-license-11.8.0.aar Could not find play-services-auth-api-phone-license.aar (com.google.android.gms:play-services-auth-api-phone-license:11.8.0). Searched in the following locations: https://jcenter.bintray.com/com/google/android/gms/play-services-auth-api-phone-license/11.8.0/play-services-auth-api-phone-license-11.8.0.aar Could not find play-services-auth-base-license.aar (com.google.android.gms:play-services-auth-base-license:11.8.0). Searched in the following locations: https://jcenter.bintray.com/com/google/android/gms/play-services-auth-base-license/11.8.0/play-services-auth-base-license-11.8.0.aar

  • 尝试:
    使用 --stacktrace 选项运行以获取堆栈跟踪。使用 --info 或 --debug 选项运行以获得更多日志输出。
  • https://help.gradle.org 获得更多帮助

  • 13 秒内构建失败
    在 ChildProcess.whenDone (/home/alain/PuntoPro/PuntoPro/platforms/android/cordova/node_modules/cordova-common/src/superspawn.js:169:23)
    在emitTwo (events.js:126:13)
    在 ChildProcess.emit (events.js:214:7)
    在maybeClose (internal/child_process.js:925:16)
    在 Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
    (节点:440)UnhandledPromiseRejectionWarning:未处理的 promise 拒绝。这个错误要么是因为在没有 catch 块的情况下抛出了异步函数,要么是因为拒绝了一个没有用 .catch() 处理过的 promise 。 (拒绝编号:1)
    (节点:440)[DEP0018] 弃用警告:不推荐使用未处理的 promise 拒绝。将来,未处理的 promise 拒绝将使用非零退出代码终止 Node.js 进程。

    我已经搜索了解决方案,但仍然没有,也许我可以提供帮助。

    最佳答案

    通过对 build.gradle 文件进行小的更改解决了该问题。基本上就是换个顺序,先调用maven{}再调用jcenter()

    buildscript {
    repositories {
    maven {
    url "https://maven.google.com"
    }

    jcenter()
    }
    dependencies {
    classpath 'com.android.tools.build:gradle:3.0.0'
    }
    }

    关于cordova - 无法解析配置 ':app:debugCompileClasspath' 的所有文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51731129/

    29 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com