Android "Conversion to dalvik format ended with error 1" and proguard

I see that when exporting my application, "Converting to dalvik format failed with error 1", but I do not see anything on the console output to help me solve it.

I restarted eclipse and checked the console and I can not see anything?

Where are proguard magazines stored?

When running the application without proguard everything works fine

+6
source share
6 answers

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

+7
source

Go to Project "Properties" Java Build Path "Libraries and delete everything except" Android XY "(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 the project folders (I copied the Admob jar into my src forlder) and THEN added it as a Java path library. It does not appear in the package explorer, so you do not notice it, but it is counted twice, causing a terrible Dalvik 1 error.

The answer was found in this question.

+4
source

For me, the problem was that it included proguard.config as:

 proguard.config=proguard-project.txt 

instead (forget to specify the default proguard configuration)

 proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt 
+1
source

I have found a solution. I linked the library in which there was a jar file for android support, and even the link project had a jar file for android support. I initially renamed, but still work. Since the android support file was already added to the library file that I added, I deleted the android jar file present in the link project, and therefore the problem was resolved :)

0
source

I am using Pro-Guard. After checking the imported .jar files, cleaning up and restoring the error still occurs. But I found another way to get out of this and successfully export the signed package. This can be removed from the bin and gen folder in the project folder. Go back to the eclipse and clear your project.

Hope this helps.

0
source

I am using the Eclispe IDE and I encountered the same problem while exporting a signed application.

I changed in proguard.cfg to avoid optimization (-dontoptimize) and everything goes smoothly

0
source

Source: https://habr.com/ru/post/903936/


All Articles