Conversion to Dalvik format failed with error 1 in Android on export (adt 21)

前端 未结 3 1747
离开以前
离开以前 2020-12-15 23:14

I know a form of this question is out there, but I can\'t find anything specifically that fits my scenario, so here it is.

My app compiles and runs perfectly when te

3条回答
  •  南笙
    南笙 (楼主)
    2020-12-15 23:55

    After a lot of attempts I managed to find out the reason why this issue occurs. In general, this is caused by ProGuard and specifically its optimization. At least in my case I had 4 corrupt projects with this error, but after I disabled the ProGuard optimization, all of them were built correctly. So, in your ProGuard config comment the -optimizations and -optimizationpasses options and add -dontoptimize

    # -optimizations ...
    # -optimizationpasses 5
    
    -dontoptimize
    

    Hope this helps.

提交回复
热议问题