Android Studio: Failed to load dx.jar
I just clean installed Android Studio on OS X and Ubuntu and had the same issue. Fixed by downgrading the build tools to 25.0.3.
For @emjapeve:
- Select the
SDK Manager
(Tools
/Android
/SDK Manager
). - Hit the
SDK Tools
tab, by default this only shows current tool versions. - Select the
Show Package Details
checkbox.
From here you can install / uninstall any versions you wish.
If you are doing a Legacy build then here is the fix ...
Android Build Tools when used by Android Studio can produces a dx.jar error during dexing.
Please revert the Android Build Tools to 25.0.3.
Tools->Android->SDK Manager Click on SDK Tools Check the Show Package Details Box in the Lower Right Unselect Android SDK Build Tools 26 or higher Select Android SDK Build Tools 25.0.3
My fix is to copy
android-sdk/build-tools/25.0.3/lib
to the folder
android-sdk/build-tools/26.0.1/lib
Now all works great with Eclipse