Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android: Dex conversion failed while importing

Tags:

android

dex

I got an error while i import an android project from one workspace location to another in eclipse.

I'm using Google_admob in my project to display ads..I does't have any errors and it works well in my old workspace.

Eclipse Version : Indigo Service Release 2

Android-Project Version : Android 4.0.3

Error states : [2012-12-03 12:02:27 - Dex Loader] Unable to execute dex: Multiple dex files define Lcom/google/ads/Ad; Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lcom/google/ads/Ad;

enter image description here

like image 284
GK_ Avatar asked Nov 28 '25 22:11

GK_


2 Answers

i found my problem.

I actually import my lib jar file in libs_folder and also in project_libraries(External Jar)..So 2 times dex file has created in bin/dexedLibs/ ..Now i deleted one jar file from one location ..

now its working

Thanks for your support geeks..

like image 178
GK_ Avatar answered Dec 01 '25 16:12

GK_


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.

like image 38
raju Avatar answered Dec 01 '25 16:12

raju