Android Question Error in FirebaseAdmod2

Enxix

Member
Hello, help me solve the following problem. I am using the "FirebaseAdMob2" library and I get the following error.

Error:
Error in C:\Android_sdk\tools\..\extras\b4a_local\unpacked-guava-31.0.1-android-63793419062468\dex_v1\guava-31.0.1-android.zip:classes.dex:
Type com.google.common.util.concurrent.ListenableFuture is defined multiple times: C:\Android_sdk\tools\..\extras\b4a_local\unpacked-guava-31.0.1-android-63793419062468\dex_v1\guava-31.0.1-android.zip:classes.dex, C:\Android_sdk\tools\..\extras\b4a_local\unpacked-com.google.guava-listenablefuture-63830682710198\dex_v1\com.google.guava-listenablefuture.zip:classes.dex
Compilation failed
Exception in thread "main" java.lang.RuntimeException: com.android.tools.r8.CompilationFailedException: Compilation failed to complete, origin: C:\Android_sdk\tools\..\extras\b4a_local\unpacked-guava-31.0.1-android-63793419062468\dex_v1\guava-31.0.1-android.zip:classes.dex
    at com.android.tools.r8.internal.vj.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:98)
    at com.android.tools.r8.D8.main(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:4)
Caused by: com.android.tools.r8.CompilationFailedException: Compilation failed to complete, origin: C:\Android_sdk\tools\..\extras\b4a_local\unpacked-guava-31.0.1-android-63793419062468\dex_v1\guava-31.0.1-android.zip:classes.dex
    at Version.fakeStackEntry(Version_3.3.20-dev+aosp1.java:0)
    at com.android.tools.r8.internal.vj.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:75)
    at com.android.tools.r8.internal.vj.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:28)
    at com.android.tools.r8.internal.vj.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:27)
    at com.android.tools.r8.internal.vj.b(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:2)
    at com.android.tools.r8.D8.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:22)
    at com.android.tools.r8.D8.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:17)
    at com.android.tools.r8.internal.vj.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:85)
    ... 1 more
Caused by: com.android.tools.r8.internal.f: Type com.google.common.util.concurrent.ListenableFuture is defined multiple times: C:\Android_sdk\tools\..\extras\b4a_local\unpacked-guava-31.0.1-android-63793419062468\dex_v1\guava-31.0.1-android.zip:classes.dex, C:\Android_sdk\tools\..\extras\b4a_local\unpacked-com.google.guava-listenablefuture-63830682710198\dex_v1\com.google.guava-listenablefuture.zip:classes.dex
    at com.android.tools.r8.internal.YS.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:14)
    at com.android.tools.r8.internal.YS.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:22)
    at com.android.tools.r8.internal.cN.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:36)
    at com.android.tools.r8.internal.cN.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:10)
    at java.util.concurrent.ConcurrentHashMap.merge(ConcurrentHashMap.java:1990)
    at com.android.tools.r8.internal.cN.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:6)
    at com.android.tools.r8.graph.E2$a.e(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:4)
    at com.android.tools.r8.dex.b.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:105)
    at com.android.tools.r8.dex.b.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:28)
    at com.android.tools.r8.D8.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:25)
    at com.android.tools.r8.D8.d(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:609)
    at com.android.tools.r8.D8.c(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:1)
    at com.android.tools.r8.internal.vj.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:24)
    ... 5 more

Use B4A 12.50
I already deleted the SDK and reinstalled it following the instructions given (https://www.b4x.com/b4a.html)

And I keep getting the same error.
Only in this project it doesn't compile for me in all the others it does. The only difference is that in this case I use the aforementioned library (FirebaseAdMob2)
 

Enxix

Member
You did something wrong. Maybe forgot to update Tools - Configuration Paths.
Also delete your internal libraries folder and reinstall B4A.
Hello, I already did what you told me and when I restore the libraries (I have to do it for the projects already carried out) the error continues.
Only in this project do I get that error. Not in the rest.
I use the following libraries


WobbleMenu

Modified Exoplayer

And then internal libraries.
Json
phone
OkHttpUtils2
StringUtils
 
Upvote 0
Top