We are having problems in building our multidex App. We keep receiving different java.lang.NoClassDefFoundError
erros during the application boot.
We noticed that they are very likely related to the multidex issues. As the required classes for booting the App must be present in the primary DEX file and they are not being included in the classes.dex
. We performed the steps described in https://developer.android.com/studio/build/multidex.html#keep
but the classes we specify in the multidex-config.txt
, or even in the multidex-config.pro
are not being placed in the primary dex file (classes.dex
).
Do you guys have experience using the multiDexKeepFile
or the multiDexKeepProguard? Does it really work? Is there any trick to make it work and place the files in the classes.dex
?