Android Question Library dex files are not supported in multi-dex mode

Status
Not open for further replies.

Almora

Active Member
Licensed User
Longtime User
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)

"required resources" and the "command line tool" unzip to c:\android
#MultiDex: True I use ..

i installed b4a on a new pc. but this is showing the error. no error in a new project. but it shows errors in existing projects. This error pops up as libraries are added.

what should I do.

thanks..


edit.... tried libraries one by one and firebase admob causing this..
shows the above error when I add FirebaseAdmob.
 
Last edited:

Almora

Active Member
Licensed User
Longtime User
B4A Version: 10.60
Parsing code. (0.02s)
Java Version: 11
Building folders structure. (0.05s)
Compiling code. (0.43s)
Compiling layouts code. (0.07s)
Organizing libraries. (0.04s)
(AndroidX SDK)
Generating R file. (0.75s)
Compiling generated Java code. (3.02s)
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)
 
Upvote 0

Almora

Active Member
Licensed User
Longtime User
When this line is not added, the above error does not exist. but different errors occur. I need to use this line.
 
Upvote 0

Almora

Active Member
Licensed User
Longtime User
I only "required resources" "command line tool" and emulator installed. I did not install additional components (maven)
problem is solved
 
Upvote 0
Status
Not open for further replies.
Top