Android Studio: Failed to load dx.jar -
when run module in android studio error:
error:android dex: [gradledevbuild] failed load dx.jar
i have searched endlessly solution online related eclipse, there nothing when comes android studio.
the path dex.jar c:\androidsdk\build-tools\26.0.0\lib\dex.jar exists, i've moved out of folder , notified moved aware of is. have tried copying root directory , platform-tools folder did nothing.
this full list of errors seem stemming dx.jar error.
error:android dex: [gradledevbuild] failed load dx.jar error:android dex: [gradledevbuild] java.lang.classnotfoundexception: com.android.dx.command.dxconsole error:android dex: [gradledevbuild] @ java.net.urlclassloader.findclass(urlclassloader.java:381) error:android dex: [gradledevbuild] @ java.lang.classloader.loadclass(classloader.java:424) error:android dex: [gradledevbuild] @ java.lang.classloader.loadclass(classloader.java:357) error:android dex: [gradledevbuild] @ org.jetbrains.android.compiler.tools.androiddxrunner.loaddex(androiddxrunner.java:80) error:android dex: [gradledevbuild] @ org.jetbrains.android.compiler.tools.androiddxrunner.rundex(androiddxrunner.java:136) error:android dex: [gradledevbuild] @ org.jetbrains.android.compiler.tools.androiddxrunner.main(androiddxrunner.java:336) error:android dex: [gradledevbuild] exception in thread "main" java.lang.nullpointerexception error:android dex: [gradledevbuild] @ org.jetbrains.android.compiler.tools.androiddxrunner.rundex(androiddxrunner.java:139)
i clean installed android studio on os x , ubuntu , had same issue. fixed downgrading build tools 25.0.3.
for @emjapeve:
- select
sdk manager
(tools
/android
/sdk manager
). - hit
sdk tools
tab, default shows current tool versions. - select
show package details
checkbox.
from here can install / uninstall versions wish.
wiki
Comments
Post a Comment