Dx bad class file magic (cafebabe) or version (0033.0000) with ADK14

前端 未结 18 2017
攒了一身酷
攒了一身酷 2020-11-27 05:00

Since moving to ADK14, I have been unable to build new apks for release on my Windows 7 system.

Building fails with \"conversion to dalvik format failed with error 1

18条回答
  •  旧时难觅i
    2020-11-27 05:59

    I found the solution to this problem at last.

    If you look in Proguard.bat (Android SDK\tools\proguard\bin), you will find the following line:

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

    Replace it with the following:

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

    It's a stupid old issue, that I actually realize that I have seen before, now that I have figured it out. Apparently the Android SDK team still haven't fixed this problem, and it was reintroduced when I did a clean install of the Android SDK.

提交回复
热议问题