[英]Google ad service ends the build with an error
I tried in the past to integrate Google AdMob in my application, and it worked.我过去曾尝试将 Google AdMob 集成到我的应用程序中,并且奏效了。 Now, when I try to rebuild the code, it ends up with an error I don't surely know what is it all about.
现在,当我尝试重新构建代码时,它最终会出现一个错误,我不确定这是怎么回事。
I wanted an implementation of a Banner Ad, but it ended up showing this in the build output section: **Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91 is also present at [androidx.core:core:1.0.0] AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory).我想要一个横幅广告的实现,但它最终在构建输出部分显示了这一点:**清单合并失败:属性 application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android. support:support-compat:28.0.0] AndroidManifest.xml:22:18-91 也出现在 [androidx.core:core:1.0.0] AndroidManifest.xml:22:18-86 value=(androidx.core. app.CoreComponentFactory)。 Suggestion: add 'tools:replace="android:appComponentFactory"' to element at AndroidManifest.xml:10:5-34:19 to override.
建议:将 'tools:replace="android:appComponentFactory"' 添加到 AndroidManifest.xml:10:5-34:19 的元素以覆盖。 **
**
You need to fully move to AndroidX.您需要完全迁移到 AndroidX。 The new Google AdMob libraries are all for AndroidX, not for support libraries prior 28.0.0.
新的 Google AdMob 库均适用于 AndroidX,而不适用于 28.0.0 之前的支持库。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.