0

Using Android SDK Tools R15 and ADT 15 with Eclipse. But I'm stuck by Conversion to Dalvik format failed with error 1 when export the project to apk file with proguard on(It runs sucessfully with proguard off).

And I found this site.

Then I clean and rebuild my project but it makes no sense. And I have also tried to create a new Android project with all referenced jars of my project and then use the same proguard.cfg to obfuscate the code and export. But everything works well in the test project.

There isn't any error details printed on the terminal of Eclipse so I can't decide the problem.


It is -keepattributes LocalVariableTable makes proguard produce malformed code.

kirisetsz
  • 105
  • 2
  • 11

1 Answers1

0

This question has been asked several times before:

Chances are the problem will go away if you update the old version of proguard.jar in the Android SDK with the latest version (4.6 or 4.7) from the official ProGuard site at Sourceforge.

Community
  • 1
  • 1
Eric Lafortune
  • 45,150
  • 8
  • 114
  • 106
  • Thanks for your answer and I've accidentally found the problem in my proguard.cfg. By remove the `-keepattributes LocalVariableTable` the export works! – kirisetsz Dec 13 '11 at 11:12