Error: Android Dex: cannot find file \ android-sdk-path \ platform-tools \ lib \ dx.jar

I got the latest Android SDK a few days ago. I ran into a problem such as the title when I create an Android app with Intellij IDEA. I knew that the last Android sdk file would transfer dx.jar from the platform tools to a new folder called build-tools. So I want to know how to fix this?

+7
source share
2 answers

Many people have encountered this problem: http://youtrack.jetbrains.com/issue/IDEA-107311

Fixed in IDEA 12.1.4, which you can get by changing the update settings to "early access". Most likely, this will be in the main distribution. If on linux or mac you can also configure a symlink to resolve the old path. It is probably best to upgrade to the latest version.

+5
source

I have the same problem:

Android Pre Dex: Cannot find file D:\sdk\sdk\platform-tools\dx.jar 

I solved it in a simple way. The dx.jar file is located in D: \ sdk \ sdk \ platform-tools \ lib . I moved it to the parent directory. Now it works.

+10
source

All Articles