Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android 'Conversion to dalvik format failed with error 1' and proguard

I am seeing 'Conversion to dalvik format failed with error 1' when exporting my app but I dont see anything in the console output to help me resolve it

I have restarted eclipse and checked the console and I dont see anything?

Where do the proguard logs get stored?

When running the app without proguard all works fine

like image 376
user964283 Avatar asked Dec 16 '11 18:12

user964283


3 Answers

Update your version of proguard to the latest version: http://proguard.sourceforge.net/

like image 84
Jave Avatar answered Oct 18 '22 01:10

Jave


Go to Project » Properties » Java Build Path » Libraries and remove all except the "Android X.Y" (in my case Android 1.5). click OK. Go to Project » Clean » Clean projects selected below » select your project and click OK. That should work.

It is also possible that you have a JAR file located somewhere in your project folders (I had copied the Admob jar into my src forlder) and THEN added it as a Java Path Library. It does not show up under the Package Explorer, so you don't notice it, but it does get counted twice, causing the dreaded Dalvik error 1.

Answer was found in this question

like image 4
silleknarf Avatar answered Oct 18 '22 01:10

silleknarf


For me problem was that included proguard.config as:

proguard.config=proguard-project.txt

instead of (forget to mention default proguard config)

proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
like image 1
Dmitry Zaytsev Avatar answered Oct 18 '22 02:10

Dmitry Zaytsev