How to Execute Dex: Multiple Dex Files Define Lcom/Myapp/R$Array;

Unable to execute dex: Multiple dex files define Lcom/myapp/R$array;

My problem was resolved after cleaning up some directories and files left over from the previous versions of the tools. ADT Rev 14 changes where binaries are stored. I deleted the entire bin directory, restarted Eclipse and cleaned the build and forced a rebuild. That seemed to do the trick initially but the problem came back after the next run.

I finally discovered that my bin directory was included in the project build path. I excluded bin from the build path and repeated the steps above. This resolved my problem.

Unable to execute dex: Multiple dex files define Lcom/myapp/R$array;

My problem was resolved after cleaning up some directories and files left over from the previous versions of the tools. ADT Rev 14 changes where binaries are stored. I deleted the entire bin directory, restarted Eclipse and cleaned the build and forced a rebuild. That seemed to do the trick initially but the problem came back after the next run.

I finally discovered that my bin directory was included in the project build path. I excluded bin from the build path and repeated the steps above. This resolved my problem.

Unable to execute dex: Multiple dex files define Lcom/actionbarsherlock/R$attr

I pinpointed the cause of the error to /bin/classes. If I deleted the /classes dir before running the app, the app would compile and run. Of course, when I tried to actually export the app, the /classes dir would come back and along with it the error.

The solution to my problem was to install the latest version of Eclipse. When I export or run the app through the latest installation of Eclipse, the /classes folder does not appear now.

Multiple dex files define Lcom/google/android/gms/common/AccountPicker;

Error converting bytecode to dex:\nCause:
com.android.dex.DexException: Multiple dex files define
Lcom/google/android/gms/common/AccountPicker;

Problem

Same com.google.android.gms:play-services

Solutions

Delete google-play-services from build.gradle & Local lib folder .

 compile files('libs/google-play-services.jar')

After that Clean-Rebuild-Run.



Related Topics



Leave a reply



Submit