7

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?

Jeffrey Lee
  • 143
  • 2
  • 6
  • I think the following link will solve your problem http://stackoverflow.com/questions/13743394/securityexception-unable-to-find-field-for-dex-jar-android – Rachita Nanda May 24 '13 at 10:49

2 Answers2

10

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.

K.C.
  • 2,084
  • 2
  • 25
  • 38
JULIIncognito
  • 1,875
  • 2
  • 15
  • 15
5

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.

DSK
  • 558
  • 4
  • 8