我正在尝试通过中介测试来测试Facebook受众网络出价与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应用ID添加到了清单文件中,并设置了测试设备。但仍然出现这个错误。有人可以帮我解决这个错误吗?谢谢你的帮助!
jcenter()
已被弃用。 - Abhishek Dutt