简体   繁体   English

Flutter 构建错误:无法确定任务':app:compileDebugJavaWithJavac的依赖关系

[英]Flutter Build Error:Could not determine the dependencies of task ':app:compileDebugJavaWithJavac

Was working fine just before and after rebuilding the process was interrupted with a sudden restart, and after that this is the error showing up, I've tried every possible solution found on the internet.在重建过程之前和之后工作正常,突然重新启动中断了过程,之后出现了错误,我已经尝试了在互联网上找到的所有可能的解决方案。

I run v1.22.6 for the project.我为该项目运行 v1.22.6。

FAILURE: Build failed with an exception. FAILURE:构建失败并出现异常。

  • What went wrong: Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.出了什么问题:无法确定任务':app:compileDebugJavaWithJavac'的依赖关系。

Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'.无法解析配置 ':app:debugCompileClasspath' 的所有任务依赖项。 Could not resolve com.google.android.gms:play-services-ads-identifier:[15.0.0, 16.0.99].无法解析 com.google.android.gms:play-services-ads-identifier:[15.0.0, 16.0.99]。 Required by: project:app > com.onesignal:OneSignal:3.15.7 > Failed to list versions for com.google.android.gms:play-services-ads-identifier.要求:项目:app > com.onesignal:OneSignal:3.15.7 > 未能列出 com.google.androididentifier.gms 的版本: > Unable to load Maven meta-data from https://google.bintray.com/exoplayer/com/google/android/gms/play-services-ads-identifier/maven-metadata.xml . > Unable to load Maven meta-data from https://google.bintray.com/exoplayer/com/google/android/gms/play-services-ads-identifier/maven-metadata.xml . > Could not get resource 'https://google.bintray.com/exoplayer/com/google/android/gms/play-services-ads-identifier/maven-metadata.xml'. > 无法获取资源“https://google.bintray.com/exoplayer/com/google/android/gms/play-services-ads-identifier/maven-metadata.xml”。 > Could not GET 'https://google.bintray.com/exoplayer/com/google/android/gms/play-services-ads-identifier/maven-metadata.xml'. > 无法获取“https://google.bintray.com/exoplayer/com/google/android/gms/play-services-ads-identifier/maven-metadata.xml”。 Received status code 403 from server: Forbidden Could not resolve com.google.android.gms:play-services-basement:[15.0.1,16.0.0).从服务器收到状态代码 403:禁止无法解析 com.google.android.gms:play-services-basement:[15.0.1,16.0.0)。 Required by: project:app > com.google.android.gms:play-services-location:15.0.1 project:app > com.google.android.gms:play-services-places-placereport:15.0.1 > Failed to list versions for com.google.android.gms:play-services-basement. Required by: project:app > com.google.android.gms:play-services-location:15.0.1 project:app > com.google.android.gms:play-services-places-placereport:15.0.1 > Failed to列出 com.google.android.gms 的版本:play-services-basement。 > Unable to load Maven meta-data from https://google.bintray.com/exoplayer/com/google/android/gms/play-services-basement/maven-metadata.xml. > 无法从 https://google.bintray.com/exoplayer/com/google/android/gms/play-services-basement/maven-metadata.Z0F635D0E0F38276C 加载 Maven 元数据> Could not get resource 'https://google.bintray.com/exoplayer/com/google/android/gms/play-services-basement/maven-metadata.xml'. > 无法获取资源“https://google.bintray.com/exoplayer/com/google/android/gms/play-services-basement/maven-metadata.xml”。 > Could not GET 'https://google.bintray.com/exoplayer/com/google/android/gms/play-services-basement/maven-metadata.xml'. > 无法获取“https://google.bintray.com/exoplayer/com/google/android/gms/play-services-basement/maven-metadata.xml”。 Received status code 403 from server: Forbidden Could not resolve com.google.android.gms:play-services-tasks:[15.0.1,16.0.0).从服务器收到状态码 403:禁止无法解析 com.google.android.gms:play-services-tasks:[15.0.1,16.0.0)。 Required by: project:app > com.google.android.gms:play-services-location:15.0.1 > Failed to list versions for com.google.android.gms:play-services-tasks. Required by: project:app > com.google.android.gms:play-services-location:15.0.1 > Failed to list versions for com.google.android.gms:play-services-tasks. > Unable to load Maven meta-data from https://google.bintray.com/exoplayer/com/google/android/gms/play-services-tasks/maven-metadata.xml. > 无法从 https 加载 Maven 元数据://google.bintray.com/exoplayer/com/google/android/gms/play-services-tasks/maven-metadata.Z0F635D0E0F3876CC > Could not get resource 'https://google.bintray.com/exoplayer/com/google/android/gms/play-services-tasks/maven-metadata.xml'. > 无法获取资源“https://google.bintray.com/exoplayer/com/google/android/gms/play-services-tasks/maven-metadata.xml”。 > Could not GET 'https://google.bintray.com/exoplayer/com/google/android/gms/play-services-tasks/maven-metadata.xml'. > 无法获取“https://google.bintray.com/exoplayer/com/google/android/gms/play-services-tasks/maven-metadata.xml”。 Received status code 403 from server: Forbidden从服务器收到状态码 403:Forbidden

  • Try: Run with --stacktrace option to get the stack trace.尝试:使用 --stacktrace 选项运行以获取堆栈跟踪。 Run with --info or --debug option to get more log output.使用 --info 或 --debug 选项运行以获得更多日志 output。 Run with --scan to get full insights.运行 --scan 以获得完整的见解。

  • Get more help at https://help.gradle.orghttps://help.gradle.org获得更多帮助

BUILD FAILED in 1m 0s Exception: Gradle task assembleDebug failed with exit code 1 BUILD FAILED in 1m 0s Exception: Gradle task assembleDebug failed with exit code 1

Run Flutter Doctor, and check if it gives error related to android licenses?运行 Flutter Doctor,检查它是否给出与 android 许可证相关的错误? If yes than run flutter doctor --android-licenses.如果是,则运行 flutter 医生 --android-licenses。 Just accept all and it should work.只接受所有,它应该工作。

Try changing the dependency versions in pubspec.yaml file that you recently added.尝试更改您最近添加的pubspec.yaml文件中的依赖项版本。 Then rebuild the project.然后重建项目。

***.bintray.com 40X error is related to jFrog stop update the services in original domain. ***.bintray.com 40X error与 jFrog 停止更新原始域中的服务有关。

repositories {
  jcenter() // <-- remove this line
  mavenCentral() // <-- add this line
}

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法确定任务 &#39;:app:compileDebugJavaWithJavac&#39; 的依赖关系。[Flutter] - Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.[Flutter] 无法确定任务 ':app:compileDebugJavaWithJavac' 的依赖关系 - Flutter - Could not determine the dependencies of task ':app:compileDebugJavaWithJavac' - Flutter 无法确定任务 ':app:compileDebugJavaWithJavac' Flutter 的依赖关系 - Could not determine the dependencies of task ':app:compileDebugJavaWithJavac' Flutter flutter 错误无法确定任务':app:compileDebugJavaWithJavac'的依赖关系 - flutter error Could not determine the dependencies of task ':app:compileDebugJavaWithJavac' Flutter Android build 无法确定任务“:app:compileDebugJavaWithJavac”的依赖项 Google Play 服务错误 - Flutter Android build Could not determine the dependencies of task ':app:compileDebugJavaWithJavac' Google Play Services Error 错误:无法确定任务&#39;:app:compileDebugJavaWithJavac&#39;的依赖关系 - Error:Could not determine the dependencies of task ':app:compileDebugJavaWithJavac' 错误=&gt;无法确定任务&#39;:app:compileDebugJavaWithJavac&#39;的依赖关系 - Error=> Could not determine the dependencies of task ':app:compileDebugJavaWithJavac' 无法确定任务“:app:compileDebugJavaWithJavac”的依赖关系。 - 颤振问题 - Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'. - Flutter Issue flutter run 无法确定任务&#39;:app:compileDebugJavaWithJavac&#39;的依赖关系 - flutter run Could not determine the dependencies of task ':app:compileDebugJavaWithJavac' Flutter 通知 OneSignal - 无法确定任务 &#39;:app:compileDebugJavaWithJavac&#39; 的依赖关系 - Flutter Notification OneSignal - Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM