73

Installed Android Studio 2.2 Preview 2 and getting this error:

Error:CreateProcess error=216, This version of %1 is not compatible with the version of Windows you're running. Check your computer's system information and then contact the software publisher

Screenshot: enter image description here

I re-installed the JDK, still same issue.

I even tried to use the embedded JDK but still having the same issue:

enter image description here

user1406716
  • 9,565
  • 22
  • 96
  • 151

4 Answers4

126

I had the same issue, but I have resolved it the next:

1) Install jdk1.8...

2) In AndroidStudio File->Project Structure->SDK Location, select your directory where the JDK is located, by default Studio uses embedded JDK but for some reason it produces error=216.

3) Click Ok.

Omkar
  • 3,040
  • 1
  • 22
  • 42
user6442395
  • 1,292
  • 1
  • 9
  • 2
57

REASON

This happens because for now they only ship 64bit JRE with Android Studio for Windows which produces glitches in 32 bit systems.

SOLUTION

  • do not use the embedded JDK: Go to File -> Project Structure dialog, uncheck "Use embedded JDK" and select the 32-bit JRE you've installed separately in your system
  • decrease the memory footprint for Gradle in gradle.properties(Project Properties), for eg set it to -Xmx768m.

For more details: https://code.google.com/p/android/issues/detail?id=219524

Siva Prakash
  • 4,626
  • 34
  • 26
  • @Barun how did you do it? I'm a total beginner – mc8 Mar 13 '17 at 17:48
  • @mc8 follow the instruction – Barun Mar 14 '17 at 02:48
  • 1
    Sorry but if choose **jre** directory say, *Please choose a valid JDK directory*, but if choose **jdk** don't show that error message – Pedro Miguel Pimienta Morales Apr 13 '17 at 18:41
  • Notice that if your SDK path contains a space it warns and stupidly does not set the JDK path too. This is while it just warns that if SDK path conatins space the NDK may have problem. I moved my SDK from "Program Files" to a path without space and after that the SDK and JDK path was accepted by the project structure dialog. – Alireza Kazemi Nov 15 '18 at 10:48
3

i think android studio has a 64bit kernel version which is giving the problem. https://github.com/swcarpentry/windows-installer/issues/49

2

Don't worry... Its much easy to solve your problem. Just SET you SDK-LOCATION and JDK-LOCATION.

  • Click on Configure ( As Soon Android studio open )
  • Click Project Default
  • Click Project Structure
  • Clik Android Sdk Location

  • Select & Browse your Android SDK Location (Like: C:\Android\sdk)

  • Uncheck USE EMBEDDED JDK LOCATION

  • Set & Browse JDK Location, Like C:\Program Files\Java\jdk1.8.0_121
Pir Fahim Shah
  • 10,505
  • 1
  • 82
  • 81