我正在尝试使用中介测试来测试我的 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
我真的不确定我错过了什么。我已经在我的 list 文件中正确添加了中介套件的实现,并且我也将我的 Google Admob 中的 App ID 添加到了 list 文件中,并设置了测试设备。但仍然得到这个错误。谁能帮我解决这个错误?谢谢您的帮助!
最佳答案
今天我也遇到了同样的问题,花几个小时来消除同样的错误。
我试试这个,它解决了..!
构建脚本 ,同步梯度。
关于android - 任务 ':app:checkDebugAarMetadata' (Android Studio) 执行失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68577020/