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

后端 未结 8 1696
庸人自扰
庸人自扰 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).

提交回复
热议问题