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

前端 未结 3 1746
离开以前
离开以前 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:53

    It looks like ADT 21 adds a folder to your bin called dexedLibs which ought to speed up deployment by putting jars and libraries in precompiled dex code. I had two versions of the support library there, so I deleted all the files in the folder and built again and it worked. If I try to build with any files in there the build fails though, so I have to delete them before each export. I'm using ActionBar Sherlock and that may be conflicting with the dexedLibs thing because it won't show up there unless the folder is initially empty.

    Edit: I had been using ActionBarSherlock when this problem first came up, but have recently switched to ActionBarCompat. Since the switch, I no longer have to delete the dexedLibs folder when exporting. Looks like maybe ActionBarSherlock was to blame, but I can't be certain.

提交回复
热议问题