Android Question FirebaseAdmob2 Error

apty

Active Member
Licensed User
Longtime User
I keep getting below error when trying firebase admob 2. It seems to be referencing some libraries with similar names, how do i resolve it?:
B4X:
Finding libraries that need to be dexed.    (0.02s)
Dex code    (8.24s)
Dex merge    Error
Error in d:\commandlinetools\tools\..\extras\b4a_remote\com\google\android\gms\play-services-ads-base\20.2.0\unpacked-play-services-ads-base-20.2.0\jars\classes.zip:classes.dex:
Type com.google.android.gms.internal.ads.zzfwn is defined multiple times: d:\commandlinetools\tools\..\extras\b4a_remote\com\google\android\gms\play-services-ads-base\20.2.0\unpacked-play-services-ads-base-20.2.0\jars\classes.zip:classes.dex, d:\commandlinetools\tools\..\extras\b4a_remote\com\google\android\gms\play-services-ads\23.2.0\unpacked-play-services-ads-23.2.0\jars\classes.zip:classes.dex
Compilation failed
Exception in thread "main" java.lang.RuntimeException: com.android.tools.r8.CompilationFailedException: Compilation failed to complete, origin: d:\commandlinetools\tools\..\extras\b4a_remote\com\google\android\gms\play-services-ads-base\20.2.0\unpacked-play-services-ads-base-20.2.0\jars\classes.zip:classes.dex
    at com.android.tools.r8.utils.R0.a(R8_8.2.2-dev_53a55043254cc5be8ef500331bba25d1b4ca4bc2cd66c555d4358bf672a1f10a:126)
    at com.android.tools.r8.D8.main(R8_8.2.2-dev_53a55043254cc5be8ef500331bba25d1b4ca4bc2cd66c555d4358bf672a1f10a:5)
Caused by: com.android.tools.r8.CompilationFailedException: Compilation failed to complete, origin: d:\commandlinetools\tools\..\extras\b4a_remote\com\google\android\gms\play-services-ads-base\20.2.0\unpacked-play-services-ads-base-20.2.0\jars\classes.zip:classes.dex
    at Version.fakeStackEntry(Version_8.2.2-dev.java:0)
    at com.android.tools.r8.M.a(R8_8.2.2-dev_53a55043254cc5be8ef500331bba25d1b4ca4bc2cd66c555d4358bf672a1f10a:5)
    at com.android.tools.r8.utils.R0.a(R8_8.2.2-dev_53a55043254cc5be8ef500331bba25d1b4ca4bc2cd66c555d4358bf672a1f10a:81)
    at com.android.tools.r8.utils.R0.a(R8_8.2.2-dev_53a55043254cc5be8ef500331bba25d1b4ca4bc2cd66c555d4358bf672a1f10a:32)
    at com.android.tools.r8.utils.R0.a(R8_8.2.2-dev_53a55043254cc5be8ef500331bba25d1b4ca4bc2cd66c555d4358bf672a1f10a:31)
    at com.android.tools.r8.utils.R0.b(R8_8.2.2-dev_53a55043254cc5be8ef500331bba25d1b4ca4bc2cd66c555d4358bf672a1f10a:2)
    at com.android.tools.r8.D8.a(R8_8.2.2-dev_53a55043254cc5be8ef500331bba25d1b4ca4bc2cd66c555d4358bf672a1f10a:26)
    at com.android.tools.r8.D8.b(R8_8.2.2-dev_53a55043254cc5be8ef500331bba25d1b4ca4bc2cd66c555d4358bf672a1f10a:13)
    at com.android.tools.r8.D8.a(R8_8.2.2-dev_53a55043254cc5be8ef500331bba25d1b4ca4bc2cd66c555d4358bf672a1f10a:24)
    at com.android.tools.r8.utils.R0.a(R8_8.2.2-dev_53a55043254cc5be8ef500331bba25d1b4ca4bc2cd66c555d4358bf672a1f10a:113)
    ... 1 more
Caused by: com.android.tools.r8.utils.b: Type com.google.android.gms.internal.ads.zzfwn is defined multiple times: d:\commandlinetools\tools\..\extras\b4a_remote\com\google\android\gms\play-services-ads-base\20.2.0\unpacked-play-services-ads-base-20.2.0\jars\classes.zip:classes.dex, d:\commandlinetools\tools\..\extras\b4a_remote\com\google\android\gms\play-services-ads\23.2.0\unpacked-play-services-ads-23.2.0\jars\classes.zip:classes.dex
    at com.android.tools.r8.utils.O2.a(R8_8.2.2-dev_53a55043254cc5be8ef500331bba25d1b4ca4bc2cd66c555d4358bf672a1f10a:21)
    at com.android.tools.r8.utils.O2.a(R8_8.2.2-dev_53a55043254cc5be8ef500331bba25d1b4ca4bc2cd66c555d4358bf672a1f10a:26)
    at com.android.tools.r8.utils.A2.a(R8_8.2.2-dev_53a55043254cc5be8ef500331bba25d1b4ca4bc2cd66c555d4358bf672a1f10a:44)
    at com.android.tools.r8.utils.A2.a(R8_8.2.2-dev_53a55043254cc5be8ef500331bba25d1b4ca4bc2cd66c555d4358bf672a1f10a:10)
    at java.base/java.util.concurrent.ConcurrentHashMap.merge(ConcurrentHashMap.java:2056)
    at com.android.tools.r8.utils.A2.a(R8_8.2.2-dev_53a55043254cc5be8ef500331bba25d1b4ca4bc2cd66c555d4358bf672a1f10a:6)
    at com.android.tools.r8.graph.b4$a.e(R8_8.2.2-dev_53a55043254cc5be8ef500331bba25d1b4ca4bc2cd66c555d4358bf672a1f10a:7)
    at com.android.tools.r8.dex.c.a(R8_8.2.2-dev_53a55043254cc5be8ef500331bba25d1b4ca4bc2cd66c555d4358bf672a1f10a:58)
    at com.android.tools.r8.dex.c.a(R8_8.2.2-dev_53a55043254cc5be8ef500331bba25d1b4ca4bc2cd66c555d4358bf672a1f10a:9)
    at com.android.tools.r8.dex.c.a(R8_8.2.2-dev_53a55043254cc5be8ef500331bba25d1b4ca4bc2cd66c555d4358bf672a1f10a:8)
    at com.android.tools.r8.D8.a(R8_8.2.2-dev_53a55043254cc5be8ef500331bba25d1b4ca4bc2cd66c555d4358bf672a1f10a:29)
    at com.android.tools.r8.D8.d(R8_8.2.2-dev_53a55043254cc5be8ef500331bba25d1b4ca4bc2cd66c555d4358bf672a1f10a:17)
    at com.android.tools.r8.D8.c(R8_8.2.2-dev_53a55043254cc5be8ef500331bba25d1b4ca4bc2cd66c555d4358bf672a1f10a:1)
    at com.android.tools.r8.utils.R0.a(R8_8.2.2-dev_53a55043254cc5be8ef500331bba25d1b4ca4bc2cd66c555d4358bf672a1f10a:28)
    ... 6 more
 
Top