Android tools not running on IntelliJ

I recently migrated from eclipse to Intellij and am having problems using Android tools. When I click Tools-> Android-> Monitor (including DDMS), I get an error:

The JNI shared library "C: \ Program Files \ Java \ jdk1.7.0_17 \ bin .. \ jre \ bin \ server \ jvm.dll" could not be loaded.

I am using the latest Intellij community. I would be grateful for any help.

+7
source share
5 answers

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

+6
source

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

  • I have 64 bit Java. You can find out your version with this piece of code:

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

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

  • He worked ... like a boss.

Hope this helps.

+3
source

You need a 64-bit package:

 64-bit Windows OS 64-bit Java (JDK it must be 1.7 ) 

Try with this

+1
source

I had the same problem. In my environment, the reason was that the Intellij community started as a 32-bit executable file, and the Android Monitor tool started as a 64-bit exe. So, a clean solution is to run Intellij with a 64-bit JVM:

  • define the IDEA_JDK environment variable pointing to the path of the 64-bit JDK (for example, C: \ Program Files \ Java \ jdk1.6.0_43)
  • change the shortcut used to start Intellij to start idea.bat (instead of idea.exe )

When idea.bat finds the environment variable %IDEA_JDK% , it starts Intellij using a 64-bit JVM.

This solved the problem (in my environment).

0
source

I had to change the JAVA_HOME environment variable to point to 64-bit Java.

0
source

All Articles