i have a app which works fine but when i add AdMob (+Javaobject needed for admob) the compile fails with Dex merge Error.
System - Windows 10 64-bit, Java 17, Windows Defender turned off.
Other libs i am using
-Clipboard
-Network
-OkHttpUtils2
-Phone
-StringUtilis
following permission are added, some are added multiple times
System - Windows 10 64-bit, Java 17, Windows Defender turned off.
Other libs i am using
-Clipboard
-Network
-OkHttpUtils2
-Phone
-StringUtilis
following permission are added, some are added multiple times
android.permission.INTERNET
android.permission.ACCESS_WIFI_STATE
android.permission.ACCESS_NETWORK_STATE
com.google.android.gms.permission.AD_ID
android.permission.WAKE_LOCK
android.permission.FOREGROUND_SERVICE
android.permission.ACCESS_WIFI_STATE
android.permission.ACCESS_NETWORK_STATE
com.google.android.gms.permission.AD_ID
android.permission.WAKE_LOCK
android.permission.FOREGROUND_SERVICE
B4A Version: 12.80
Parsing code. (0.02s)
Java Version: 17
Building folders structure. (0.01s)
Compiling code. (0.03s)
Compiling layouts code. (0.00s)
Organizing libraries. (0.03s)
(AndroidX SDK)
Compiling resources (1.33s)
Linking resources (0.56s)
Compiling generated Java code. (4.30s)
Finding libraries that need to be dexed. (0.01s)
Dex code (3.61s)
Dex merge Error
Error: Cannot fit requested classes in a single dex file (# methods: 74896 > 65536). Try supplying a main-dex list
Compilation failed
Exception in thread "main" java.lang.RuntimeException: com.android.tools.r8.CompilationFailedException: Compilation failed to complete, position: null
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, position: null
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)
... 1 more
Caused by: com.android.tools.r8.internal.f: Cannot fit requested classes in a single dex file (# methods: 74896 > 65536)
at com.android.tools.r8.internal.YS.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:14)
Parsing code. (0.02s)
Java Version: 17
Building folders structure. (0.01s)
Compiling code. (0.03s)
Compiling layouts code. (0.00s)
Organizing libraries. (0.03s)
(AndroidX SDK)
Compiling resources (1.33s)
Linking resources (0.56s)
Compiling generated Java code. (4.30s)
Finding libraries that need to be dexed. (0.01s)
Dex code (3.61s)
Dex merge Error
Error: Cannot fit requested classes in a single dex file (# methods: 74896 > 65536). Try supplying a main-dex list
Compilation failed
Exception in thread "main" java.lang.RuntimeException: com.android.tools.r8.CompilationFailedException: Compilation failed to complete, position: null
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, position: null
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)
... 1 more
Caused by: com.android.tools.r8.internal.f: Cannot fit requested classes in a single dex file (# methods: 74896 > 65536)
at com.android.tools.r8.internal.YS.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:14)
Last edited: