Android Question Debug Compliation Error

PABLO2013

Well-Known Member
Licensed User
Longtime User
Debug Compliation Error
Greetings, I wanted to know how and why this error occurred, thank you

B4X:
B4A Versión: 12.50
Parseando código.    (1.02s)
    Java Versión: 11
Building folders structure.    (0.98s)
Compilando código.    (1.76s)
Compilado códigos de diseños.    (0.06s)
Organizando librerías.    (0.13s)
    (AndroidX SDK)
Compilando los recursos    (31.06s)
Enlazando los recursos    (10.08s)
Compilando el código del motor de depuración.    (22.08s)
Compilando el código Java generado.    (31.82s)
Buscando librerias que necesitan ser dexed.    (0.06s)
Dex code    (33.20s)
Dex merge    Error
Error in C:\Aandroid\tools\..\extras\b4a_local\unpacked-kotlin-stdlib-1.6.10-63822322562000\dex_v1\kotlin-stdlib-1.6.10.zip:classes.dex:
Type kotlin.ArrayIntrinsicsKt is defined multiple times: C:\Aandroid\tools\..\extras\b4a_local\unpacked-kotlin-stdlib-1.6.10-63822322562000\dex_v1\kotlin-stdlib-1.6.10.zip:classes.dex, C:\Aandroid\tools\..\extras\b4a_local\unpacked-kotlin-stdlib-1.5.10-63790063650031\dex_v1\kotlin-stdlib-1.5.10.zip:classes.dex
Compilation failed
Exception in thread "main" java.lang.RuntimeException: com.android.tools.r8.CompilationFailedException: Compilation failed to complete, origin: C:\Aandroid\tools\..\extras\b4a_local\unpacked-kotlin-stdlib-1.6.10-63822322562000\dex_v1\kotlin-stdlib-1.6.10.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:\Aandroid\tools\..\extras\b4a_local\unpacked-kotlin-stdlib-1.6.10-63822322562000\dex_v1\kotlin-stdlib-1.6.10.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 kotlin.ArrayIntrinsicsKt is defined multiple times: C:\Aandroid\tools\..\extras\b4a_local\unpacked-kotlin-stdlib-1.6.10-63822322562000\dex_v1\kotlin-stdlib-1.6.10.zip:classes.dex, C:\Aandroid\tools\..\extras\b4a_local\unpacked-kotlin-stdlib-1.5.10-63790063650031\dex_v1\kotlin-stdlib-1.5.10.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.base/java.util.concurrent.ConcurrentHashMap.merge(ConcurrentHashMap.java:2048)
    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
 

DonManfred

Expert
Licensed User
Longtime User
why this error occurred
you are probably including multiple kotlin-stdlib in your project.
Make sure only to include one or exclude the others....
 
Upvote 0

PABLO2013

Well-Known Member
Licensed User
Longtime User
Tks Don Manfred , The strange thing is that the tools folder does not exist on my disk (origin: C:\Aandroid\tools)

1694527322139.png
 
Upvote 0

PABLO2013

Well-Known Member
Licensed User
Longtime User
The problem arose now that I moved to the latest version of b4a ,The problem arose now that I moved to the latest version of b4a C:\Aandroid\tools\
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
I suggest to install fresh. B4A and SDK.

Follow the installationinstructions carefully:
 
Upvote 0
Top