Android Question Compiling error

Philip Prins

Active Member
Licensed User
Longtime User
Hello

I get the following error when compiling:

Error in C:\Android\tools\..\extras\b4a_local\unpacked-kotlin-stdlib-1.6.10-63783486950000\dex_v1\kotlin-stdlib-1.6.10.zip:classes.dex:
Type kotlin.ArrayIntrinsicsKt is defined multiple times: C:\Android\tools\..\extras\b4a_local\unpacked-kotlin-stdlib-1.6.10-63783486950000\dex_v1\kotlin-stdlib-1.6.10.zip:classes.dex, C:\Android\tools\..\extras\b4a_local\unpacked-kotlin-stdlib-1.3.21-63750740980370\dex_v1\kotlin-stdlib-1.3.21.zip:classes.dex
Compilation failed

Any idea why this happens?
 

DonManfred

Expert
Licensed User
Longtime User
Any idea why this happens?
You are told in the errormessage.

You are including different kotlin-stdlib in your project.
kotlin-stdlib-1.6.10 AND (at least) kotlin-stdlib-1.3.21

Remove one of these dependencies.
Probably better to hold the newest one.

try to add
B4X:
#ExcludedLib: kotlin-stdlib-1.3.21
to your project.

Reference:
New #ExcludedLib attribute that is required in some cases when multiple native libraries with different versions are referenced.
 
Last edited:
Upvote 1

Philip Prins

Active Member
Licensed User
Longtime User
You are told in the errormessage.

You are including different kotlin-stdlib in your project.
kotlin-stdlib-1.6.10 AND (at least) kotlin-stdlib-1.3.21

Remove one of these dependencies.
Probably better to hold the newest one.

try to add
B4X:
#ExcludedLib: kotlin-stdlib-1.3.21
to your project.

Reference:
Thanks
 
Upvote 0
Top