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
包名错误。
\ncom.google.android:flexbox:1.1.1\nRun Code Online (Sandbox Code Playgroud)\n这是正确的。\xe2\x86\x93
\nimplementation ('com.google.android.ads:mediation-test-suite:2.0.0') {\n exclude group: "com.google.android", module: "flexbox"\n}\nRun Code Online (Sandbox Code Playgroud)\n这对我有用。
\n