“Conversion to Dalvik format failed with error 1” — on export only

后端 未结 8 1563
庸人自扰
庸人自扰 2020-12-08 01:14

I know this is a repeat question but I\'ve read and tried every solution on this site and I\'m still getting the error; also, I\'m getting it ONLY when I export my signed ap

相关标签:
8条回答
  • 2020-12-08 01:56

    This is an issue with Proguard in the Windows developer tools - edit Android SDK\tools\proguard\bin\Proguard.bat

    Replace:

    call %java_exe% -jar "%PROGUARD_HOME%"\lib\proguard.jar %*
    

    with:

    call %java_exe% -jar "%PROGUARD_HOME%"\lib\proguard.jar %1 %2 %3 %4 %5 %6 %7 %8 %9
    

    Keep a reference to this solution because next time you update the SDK tools it'll probably be reintroduced (has been present in last few releases).

    0 讨论(0)
  • 2020-12-08 01:57

    This was driving me insane too. I tried everything, changed all my external libraries and so on but nothing worked. I tried a newer version of proguard without success.

    Turns out I was using a library called "GridLayout" to support older devices. After I renamed the class "GridLayout" to "CustomGridLayout" it worked fine. Seems like you can't have duplicate class names.

    0 讨论(0)
  • 2020-12-08 02:00

    I tried a few of the above solutions, and had no luck. Then, I closed Eclipse, and re-opened it, and was able to export successfully. If I try again however, it wouldn't work.

    So, I think maybe I only get one successful export per "open" of Eclipse. Not an ideal solution by any means, but when all else fails give it a shot. It worked for me.

    0 讨论(0)
  • 2020-12-08 02:06

    Upgrade your Proguard to its latest version i.e., 4.7... Dowload the zip from http://sourceforge.net/projects/proguard/files/latest/download?source=files .... then copy the "lib" and "bin" folders from the zip to your sdk/tools/proguard/ to replace the default or say old "bin" and "lib" .... try exporting your project once again...

    0 讨论(0)
  • 2020-12-08 02:06

    Unselect Build Automatically works for me. Tanks anjaneya;

    0)Unselect Build Automatically 1) Clean the project 2) Build project. 3) Export Signed Application in Android Tools options.

    0 讨论(0)
  • 2020-12-08 02:07

    Go to project and unselect Build Automatically. Then Clean the project and Build all. Worked for me to export signed application package

    0 讨论(0)
提交回复
热议问题