Hello,
To use firebaseadmob 2 I updated the googlemobileads sdk to 20. After that I got some error messages regarding firebase encoders, androidwork etc. I updated them all with sdk manager but I started to get:
after some research on the forum I added:
#MultiDex: True
and now I am getting:
I tried to remove sdk file completely and reinstall as described in b4a product page, only updated the mobile ads sdk again which led to other updates againn and same errors again. What can I do about it?
Thanks
To use firebaseadmob 2 I updated the googlemobileads sdk to 20. After that I got some error messages regarding firebase encoders, androidwork etc. I updated them all with sdk manager but I started to get:
B4X:
UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536
at com.android.dx.merge.DexMerger$8.updateIndex(DexMerger.java:565)
at com.android.dx.merge.DexMerger$IdMerger.mergeSorted(DexMerger.java:276)
at com.android.dx.merge.DexMerger.mergeMethodIds(DexMerger.java:574)
at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:166)
at com.android.dx.merge.DexMerger.merge(DexMerger.java:198)
at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:504)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:336)
at com.android.dx.command.dexer.Main.runDx(Main.java:293)
at com.android.dx.command.dexer.Main.main(Main.java:249)
at com.android.dx.command.Main.main(Main.java:94)
after some research on the forum I added:
#MultiDex: True
and now I am getting:
B4X:
B4A Version: 10.70
Parsing code. (0.12s)
Java Version: 11
Building folders structure. (0.02s)
Compiling code. (0.13s)
ObfuscatorMap.txt file created in Objects folder.
Compiling layouts code. (0.01s)
Organizing libraries. (0.04s)
(AndroidX SDK)
Compiling resources (0.19s)
Linking resources (0.72s)
Compiling generated Java code. (2.76s)
Convert byte code - optimized dex. Error
UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.DexException: Library dex files are not supported in multi-dex mode
at com.android.dx.command.dexer.Main.runMultiDex(Main.java:371)
at com.android.dx.command.dexer.Main.runDx(Main.java:291)
at com.android.dx.command.dexer.Main.main(Main.java:249)
at com.android.dx.command.Main.main(Main.java:94)
I tried to remove sdk file completely and reinstall as described in b4a product page, only updated the mobile ads sdk again which led to other updates againn and same errors again. What can I do about it?
Thanks