Trying to run an Android project in IntelliJ: Error: abnormal completion of the build process: error: this Java instance does not support the 32-bit JVM.

Error:Abnormal build process termination: 
Error: This Java instance does not support a 32-bit JVM.
Please install the desired version.

How to fix it?

Java version:

    $  java -version
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-466.1-11M4716)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-466.1, mixed mode)

JAVA_HOME:

$  echo $JAVA_HOME
/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home

I also have JDK 1.8 installed ...

+4
source share
1 answer

In the general settings of your project, you need to specify the correct SDK. You need to download the desired version of java, and then find the path to her house, and then point to it in "General Settings"> "Project"> "Project SDK". You probably need to upgrade to a newer version.

+1
source

All Articles