Multidex problem (SOLVED)

Ask in discord about that problem. Thanks for help. Save it in forum.

Hi. I am trying to make sdk integration. https://github.com/d954mas/defold-yodo1-mas And have strange error with multiDex? I have no ideas, please help me))
Error in /var/extender/sdk/1f748d5b0a84e8b5c58bf747e4c48d153ef77a52/defoldsdk/ext/share/java/androidx-multidex.jar:androidx/multidex/MultiDexExtractor.class:
Type androidx.multidex.MultiDexExtractor is defined multiple times: /var/extender/sdk/1f748d5b0a84e8b5c58bf747e4c48d153ef77a52/defoldsdk/ext/share/java/androidx-multidex.jar:androidx/multidex/MultiDexExtractor.class, /tmp/.gradle/unpacked/androidx.multidex-multidex-2.0.0.aar/classes.jar:androidx/multidex/MultiDexExtractor.class
Compilation failed

1 Like

Defold itself includes multidex, and it seems your SDK includes it as wel

thanks. Excluding multidex fixed that🥳
dependencies {
implementation (‘com.yodo1.mas:full:4.3.2’) {
exclude group: ‘androidx.multidex’, module: ‘multidex’
}

3 Likes