This is caused by incomplete/messy upgrade to latest version which results in dx.jar missing from {Android SDK dir}platform-toolslib
.
Solution:
Find your latest dx.jar in {Android SDK dir}platforms*
and copy it to:
{Android SDK dir}platform-toolslib
Restart eclipse, clean
your project and everything should work as expected.
(If platform-toolslib
directory is missing entirely you will have to reinstall "Android SDK platform-tools" using SDK manager. After reinstall dx.jar should be in there so no copying will be needed)
If you can't find dx.jar
in any of {Android SDK dir}platforms*
subdirs you will have to start SDK manager and install Android 1.6 SDK.
For example on my machine latest was in {Android SDK dir}platformsandroid-4oolslib
.
(I did not find any newer version as of 2012-01-22 Android SDK R15).
I really hope that this is useful for someone because I've wasted half a day investigating and looking for solution of such a trivial bug... :-(
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…