Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

android

I got the latest Android SDK several days ago. I encountered the problem such as the title when I build my android application with Intellij IDEA. I knew the latest android sdk move the dx.jar from platform-tools to a new folder called build-tools. So i want to know how to fix it?

like image 405
Jeffrey Lee Avatar asked May 24 '13 10:05

Jeffrey Lee


2 Answers

I have the same problem:

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

I resolved it in a simple way. File dx.jar located in D:\sdk\sdk\platform-tools\lib . I moved it in the parent directory. Now it works.

like image 111
JULIIncognito Avatar answered Nov 14 '22 23:11

JULIIncognito


Lots of people encountered this issue: http://youtrack.jetbrains.com/issue/IDEA-107311

It is fixed in IDEA 12.1.4, which you can get at by changing your update settings to "early access". It'll probably be on the main feed shortly. If on linux or mac, you could also set up a symbolic link so the old path resolves. Probably best to just update to the latest version.

like image 42
DSK Avatar answered Nov 14 '22 22:11

DSK