Game crashes on user's devices (SOLVED)

I’ve charged my old phone Samsung GT-I9105 Android 4.2.2 and try to run the game.

Logcat:

09-20 11:56:18.199 8240-8240/? D/dalvikvm: Late-enabling CheckJNI
09-20 11:56:18.479 8240-8240/com.dragosha.hamster D/AndroidRuntime: Shutting down VM
09-20 11:56:18.479 8240-8240/com.dragosha.hamster W/dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x40e2c930)
09-20 11:56:18.489 8240-8240/com.dragosha.hamster E/AndroidRuntime: FATAL EXCEPTION: main
    java.lang.RuntimeException: Unable to instantiate application android.support.multidex.MultiDexApplication: java.lang.ClassNotFoundException: Didn't find class "android.support.multidex.MultiDexApplication" on path: /data/app/com.dragosha.hamster-1.apk
        at android.app.LoadedApk.makeApplication(LoadedApk.java:504)
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4529)
        at android.app.ActivityThread.access$1400(ActivityThread.java:150)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1340)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loop(Looper.java:137)
        at android.app.ActivityThread.main(ActivityThread.java:5283)
        at java.lang.reflect.Method.invokeNative(Native Method)
        at java.lang.reflect.Method.invoke(Method.java:511)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
        at dalvik.system.NativeStart.main(Native Method)
     Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.multidex.MultiDexApplication" on path: /data/app/com.dragosha.hamster-1.apk
        at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:65)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
        at android.app.Instrumentation.newApplication(Instrumentation.java:985)
        at android.app.LoadedApk.makeApplication(LoadedApk.java:499)
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4529) 
        at android.app.ActivityThread.access$1400(ActivityThread.java:150) 
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1340) 
        at android.os.Handler.dispatchMessage(Handler.java:99) 
        at android.os.Looper.loop(Looper.java:137) 
        at android.app.ActivityThread.main(ActivityThread.java:5283) 
        at java.lang.reflect.Method.invokeNative(Native Method) 
        at java.lang.reflect.Method.invoke(Method.java:511) 
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102) 
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869) 
        at dalvik.system.NativeStart.main(Native Method)

android.support.multidex.MultiDexApplication

3 Likes

Thanks. We’re investigating this.

1 Like

HI @Dragosha!
I have published a fix on our test server, to make sure the multidex-related classes always end up in the first classes.dex (your package has two dex files).

Point the editor or bob to this build server to try it out:
https://build-stage.defold.com/

4 Likes

Seems to work fine on my Samsung GT-I9105 Android 4.2.2 . Thanks!

4 Likes

Solved in 1.2.163

1 Like