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
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.
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.
Go to project and unselect Build Automatically. Then Clean the project and Build all. Worked for me to export signed application package