繁体   English   中英

任务 ':app:checkDebugAarMetadata' 执行失败 (Android Studio)

[英]Execution failed for task ':app:checkDebugAarMetadata' (Android Studio)

我正在尝试使用中介测试来测试我对 Facebook Audience Network 竞价与 Google Admob 的集成。 我按照 Google Admob 提供的步骤设置中介测试套件,但是当 Android Studio 尝试构建应用程序时,我最终收到以下错误:

Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Could not find com.google.android:flexbox:1.1.1.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/com/google/android/flexbox/1.1.1/flexbox-1.1.1.pom
       - https://repo.maven.apache.org/maven2/com/google/android/flexbox/1.1.1/flexbox-1.1.1.pom
     Required by:
         project :app > com.google.android.ads:mediation-test-suite:2.0.0

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

我真的不确定我错过了什么。 我已经在清单文件中正确添加了中介套件的实现,并且我也将来自 Google Admob 的 App ID 添加到清单文件中,并设置了测试设备。 但仍然得到这个错误。 谁能帮我解决这个错误? 感谢您的帮助!

我有同样的问题,希望得到一些帮助。

当我将实现 'com.google.android.ads:mediation-test-suite:2.0.0' 添加到 build.gradle 应用程序级别依赖项时会发生这种情况

在中介适合测试工作后尝试将mavencenter()更改为mavencenter() jcenter() return to mavencenter()

今天我遇到了同样的问题,花几个小时来消除同样的错误。 我试试这个,它解决了..!

  1. allprojectsbuildscript 中的gradle 项目中删除jcenter() ,同步 gradle。
  2. 在之前删除的相同位置再次添加jcenter() ,再次同步
  3. 错误消失了!

暂无
暂无

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM