I've installed multidex solution in my android app project and in "Google Play Dev" people encounter errors like this:
java.lang.RuntimeException:
at android.app.ActivityThread.handleReceiver (ActivityThread.java:2591)
at android.app.ActivityThread.access$1700 (ActivityThread.java:157)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1450)
at android.os.Handler.dispatchMessage (Handler.java:110)
at android.os.Looper.loop (Looper.java:193)
at android.app.ActivityThread.main (ActivityThread.java:5398)
at java.lang.reflect.Method.invokeNative (Native Method)
at java.lang.reflect.Method.invoke (Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:940)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:756)
at dalvik.system.NativeStart.main (Native Method)
Caused by: java.lang.ClassNotFoundException:
at dalvik.system.BaseDexClassLoader.findClass (BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass (ClassLoader.java:497)
at java.lang.ClassLoader.loadClass (ClassLoader.java:457)
at android.app.ActivityThread.handleReceiver (ActivityThread.java:2586)
As far as I know, I've installed multidex correctly (readed other sources about this error & multidex)
Things I did:
- MyApplication class inherits from MultiDexApplication
gradle file:
android { defaultConfig { multiDexEnabled true } dexOptions { javaMaxHeapSize "2048M" } }
dependencies { compile 'com.android.support:multidex:1.0.1' }
Yes. I use proguard.