任务 ':app:checkDebugAarMetadata' 执行失败的新错误

时间:2021-05-28 06:25:01

标签: android-studio gradle repository

昨晚我做了一个新项目,第一次运行时我发现存储库有问题。我检查了所有解决方案,但找不到任何新的东西。我还阅读了文档。我还添加了 Maven 存储库,但直到现在都没有运气。

Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
 > Could not find lifecycle-viewmodel-2.3.1.aar (androidx.lifecycle:lifecycle-viewmodel:2.3.1).
 Searched in the following locations:
     https://dl.google.com/dl/android/maven2/androidx/lifecycle/lifecycle-viewmodel/2.3.1/lifecycle-viewmodel-2.3.1.aar
  > Could not find lifecycle-viewmodel-2.3.1.aar (androidx.lifecycle:lifecycle-viewmodel:2.3.1).
 Searched in the following locations:
     https://dl.google.com/dl/android/maven2/androidx/lifecycle/lifecycle-viewmodel/2.3.1/lifecycle-viewmodel-2.3.1.aar
  > Could not find lifecycle-livedata-core-2.3.1.aar (androidx.lifecycle:lifecycle-livedata-core:2.3.1).
 Searched in the following locations:
     https://dl.google.com/dl/android/maven2/androidx/lifecycle/lifecycle-livedata-core/2.3.1/lifecycle-livedata-core-2.3.1.aar

Possible solution:
- Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html

0 个答案:

没有答案