Android ADT error dx.jar was not loaded from the SDK folder

Android ADT error, dx.jar was not loaded from the SDK folder

Unknown error: Unable to build: the file dx.jar was not loaded from the SDK folder!

Eclipse can be messy when working with Android. First advice is use Android Studio when doing Android development. Especially when working with Android.

But back to the issue. This error is caused by either broken or incomplete upgrade of the Android SDK and the dx.jar is missing or misplaced from

{Android SDK dir}\platform-tools\lib\

Solution

Locate the latest dx.jar in whatever platform you have currently installed

{Android SDK dir}\platforms\*

Copy dx.jar to

{Android SDK dir}\platform-tools\lib\

Restart Android Studio

If forever reason the platform-tools\lib is completely missing then you’ll have to reinstall the Android SDK platform-tools from the SDK manager.

Android ADT error dx.jar was not loaded from the SDK folder