重复类 com.google.android.flexbox - Android Admob

Sye*_*ini 5 android admob facebook-ads

我在我的应用程序中使用 admob 和 facebook 投放广告,并且已完成,但我想检查它,所以我添加了中介测试套件依赖项

 implementation 'com.google.android.ads:mediation-test-suite:2.0.0'
Run Code Online (Sandbox Code Playgroud)

并且该应用程序无法构建它显示

Duplicate class com.google.android.flexbox.AlignContent found in modules jetified-flexbox-1.1.1-runtime (com.google.android:flexbox:1.1.1) and jetified-flexbox-3.0.0-runtime (com.google.android.flexbox:flexbox:3.0.0)
Duplicate class com.google.android.flexbox.AlignItems found in modules jetified-flexbox-1.1.1-runtime (com.google.android:flexbox:1.1.1) and jetified-flexbox-3.0.0-runtime (com.google.android.flexbox:flexbox:3.0.0)
Run Code Online (Sandbox Code Playgroud)

还有更多 Flexbox 的重复类

我的admob版本

implementation 'com.google.android.gms:play-services-ads:20.4.0'
Run Code Online (Sandbox Code Playgroud)

小智 3

包名错误。

\n
com.google.android:flexbox:1.1.1\n
Run Code Online (Sandbox Code Playgroud)\n

这是正确的。\xe2\x86\x93

\n
implementation ('com.google.android.ads:mediation-test-suite:2.0.0') {\n   exclude group: "com.google.android", module: "flexbox"\n}\n
Run Code Online (Sandbox Code Playgroud)\n

这对我有用。

\n