java.io.IOException

unable to open DEX file

Samebug tips1

If you need more than 65536 methods on your application you need to change your Gradle configuration to enable MultiDex and modify your manifest to reference MultiDex class.


rafaelrafael

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web93

  • via GitHub by shidongdi
    ,
  • Stack trace

    • java.io.IOException: unable to open DEX file at dalvik.system.DexFile.openDexFileNative(Native Method) at dalvik.system.DexFile.openDexFile(DexFile.java:304) at dalvik.system.DexFile.<init>(DexFile.java:115) at dalvik.system.DexFile.loadDex(DexFile.java:155) at com.alipay.euler.andfix.AndFixManager.fix(AndFixManager.java:147) at com.alipay.euler.andfix.patch.PatchManager.loadPatch(PatchManager.java:214) at com.robert.today.andfixdemo.TestApplication.onCreate(TestApplication.java:25) at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1009) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4613) at android.app.ActivityThread.access$1800(ActivityThread.java:139) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1316) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5314) 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:864) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:680) at dalvik.system.NativeStart.main(Native Method)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,
    winer222winer222
    8 times, last one
    bluebunntybluebunnty
    9 times, last one
    Unknown visitor
    Unknown visitor2 times, last one
    Unknown visitor
    Unknown visitorOnce,
    8 more bugmates