Android Question [SOLVED] B4A v9.30 BETA dont work with MultiDex:True

scsjc

Well-Known Member
Licensed User
Longtime User
I'm testing a new B4A v9.30 Beta, dont work with a Multidex=true :(:(:(

B4X:
#MultiDex: True

Error log without Filter:
B4X:
FATAL EXCEPTION: main
Process: com.xxxxxxxxx, PID: 23213
java.lang.RuntimeException: Unable to instantiate application android.support.multidex.MultiDexApplication: java.lang.ClassNotFoundException: Didn't find class "android.support.multidex.MultiDexApplication" on path: DexPathList[[zip file "/data/app/com.xxxxxxxxx-vFkc7xmI_2q-sR_9RxuTBA==/base.apk"],nativeLibraryDirectories=[/data/app/com.xxxxxxxxx-vFkc7xmI_2q-sR_9RxuTBA==/lib/arm64, /data/app/com.xxxxxx-vFkc7xmI_2q-sR_9RxuTBA==/base.apk!/lib/arm64-v8a, /system/lib64, /system/vendor/lib64]]
    at android.app.LoadedApk.makeApplication(LoadedApk.java:1136)
    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6188)
    at android.app.ActivityThread.access$1200(ActivityThread.java:237)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1785)
    at android.os.Handler.dispatchMessage(Handler.java:106)
    at android.os.Looper.loop(Looper.java:214)
    at android.app.ActivityThread.main(ActivityThread.java:7045)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:965)
Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.multidex.MultiDexApplication" on path: DexPathList[[zip file "/data/app/com.xxxxxxxxx-vFkc7xmI_2q-sR_9RxuTBA==/base.apk"],nativeLibraryDirectories=[/data/app/com.xxxxxxxxx-vFkc7xmI_2q-sR_9RxuTBA==/lib/arm64, /data/app/com.xxxxxxxxx-vFkc7xmI_2q-sR_9RxuTBA==/base.apk!/lib/arm64-v8a, /system/lib64, /system/vendor/lib64]]
    at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
    at android.app.AppComponentFactory.instantiateApplication(AppComponentFactory.java:50)
    at android.app.Instrumentation.newApplication(Instrumentation.java:1120)
    at android.app.LoadedApk.makeApplication(LoadedApk.java:1128)
    ... 9 more
could not check pending caller



Some solution for this¿???
 

scsjc

Well-Known Member
Licensed User
Longtime User
I find solution with add in manifest:
B4X:
SetApplicationAttribute(android:name, "androidx.multidex.MultiDexApplication")
 
Upvote 0
Top