My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
Upgrade  
Upgrade to new Android SDK.
Updated Dec 25, 2011 by peli0...@gmail.com

Upgrade to Android 4.0

Conversion to Dalvik format failed with error 1

Solution:
Please install Eclipse-Indigo (3.7.1) or higher.

THE FOLLOWING WORKAROUND IS FOR ECLIPSE-HELIOS ONLY. IT IS RECOMMENDED TO UPGRADE TO ECLIPSE-INDIGO.
If you see the following error message in your console:

UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.IllegalArgumentException: already added: Lorg/openintents/distribution/AboutDialog;
[...]
[2011-11-23 01:58:56 - OI Notepad] Dx 1 error; aborting
[2011-11-23 01:58:56 - OI Notepad] Conversion to Dalvik format failed with error 1

do the following:

  • In Package explorer, right-click on the application (e.g. "OI Notepad") > Properties > Java Build Path.
  • In the right panel select Libraries.
  • Press "Library Projects" and push the "Remove" button to the right. (you don't want the Distribution library here, otherwise it is linked twice!)
  • For a check, on the left panel click "Android", scroll down on the right panel, and you still see the Distribution Library properly included.
  • WARNING: If you right-click the application and select Android Tools > Fix Project Properties, this wrong library entry is added again, and you have to delete it following the steps above.
  • Finally select menu "Project" > "Build All".


Sign in to add a comment
Powered by Google Project Hosting