Unable to execute dex: Multiple dex files define L

2019-06-19 23:06发布

问题:

I am getting unable to execute dex : multiple dex file error.

Console Error:

[2015-12-22 16:39:38 - Dex Loader] Unable to execute dex: Multiple dex files define Landroid/support/v7/util/ThreadUtil$MainThreadCallback;
[2015-12-22 16:39:38 - Talkr] Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Landroid/support/v7/util/ThreadUtil$MainThreadCallback;

below I have posted the screenshot for order and export.I cant check the android private libraries.if i checked it,My application gets slow and I cant run the application.

Order and Export:

Edit: If I uncheck all my libraries,multiple dex error would be resolved.But I am getting Thread suspended exception at Debug.

Below I have posted that debug error.

Anyone know how to solve this one.Thank You.

回答1:

In Eclipse :

  • These error occurred because I was updated my android sdk to 23 latest version and in extras Google play services,repository at the middle of my project.

  • Due to the conflict between my updated google play services version
    and appcompat v7 between my lower version,multi dex error would be
    occurred.

  • To avoid these error dont update an sdk or google play
    services at the middle of project once if you started the
    project.There will be a conflict configuration between sdk updated
    version and also in extras google play services between your project.

Edit: Always use Android studio to avoid this kind of multidex issue.



标签: android dex