IntelliJ Idea (Android + Maven)

after I import the project from git , it succesfully download all libraries. But when I tried to rebuild project , it throws this error, that I didn't find anywhere on the internet.

Android Dex: [name_of_project] Unable to execute DX
Android Dex: [name_of_project] java.io.FileNotFoundException: C:WindowsSystem32configsystemprofile.IdeaIC12systemcompile-servername_of_projectandroidintermediate_artifactsname_of_projectclasses.dex (System cant find the specified path.)

I tried to reinstall maven, intellij idea, set once more all paths and so on in system variables, reinstall android sdks ..., tried to set up some settings in IntelliJ Idea 12.0.4, rewrite some options in idea.properties and so on, but it still throws this error. Any suggestions?

I forgot to write, that when I tried to compile and install project on the phone with ,,mvn clean install", it works. Only with IIdea, it crashed. Im using JDK 1.6, Android 4.2, IIdea 12.0.4, Windows 7 x64 and the last version of Maven.


Your system has profile redirection enabled and you are affected by a Java Bug.

Check this KB document for the solution.


In my case the problem was in module sdk version. I changed it from 2.2 to 4.4 and the problem was solved.

链接地址: http://www.djcxy.com/p/72780.html

上一篇: 错误:找不到默认活动

下一篇: IntelliJ Idea(Android + Maven)