Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android tools not working on IntelliJ

I recently moved from eclipse to Intellij and I have problem with using Android tools. When I click Tools->Android->Monitor(DDMS included) I get error saying:

Failed to load the JNI shared library "C:\Program Files\Java\jdk1.7.0_17\bin..\jre\bin\server\jvm.dll".

I am using lastest community edition of Intellij. I would be thankful for any help.

like image 558
Srokowski Maciej Avatar asked Mar 29 '13 16:03

Srokowski Maciej


2 Answers

It is simple! Just use [IntelliJ Idea Directory]\bin\idea64.exe

like image 93
Artur Movsesyan Avatar answered Oct 05 '22 23:10

Artur Movsesyan


I had the same problem. My environment and my solution:

  • I have a 64bit Java. You can know your version with this code snippet:

    public class Test {
       public static void main(String args[]) {
           System.out.println(System.getProperty("sun.arch.data.model") );
       }  
    }
    
  • I was running the 32bit version of Intellij ("C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 12.1.3\bin\idea.exe")

  • I just change to idea64.exe ("C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 12.1.3\bin\idea64.exe"). Make a direct access to your desktop.

  • It worked ... like a boss.

Hope it helps.

like image 39
Marcos Avatar answered Oct 05 '22 23:10

Marcos