4

I just installed my Android Studio 2.2, but I keep getting an error message saying

"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"

I have tried all I could but its still not working. Check the attached image to see a screenshot of my android studio android studio showing Error:CreateProcess error=216

mhatch
  • 4,441
  • 6
  • 36
  • 62
Charpman
  • 69
  • 1
  • 10
  • Could it be that the version of Windows you are running isn't compatible.........? – brandall Sep 30 '16 at 14:13
  • 2
    Have you tried this ? http://stackoverflow.com/questions/37624369/android-studio-error-errorcreateprocess-error-216-this-version-of-1-is-not-c – Hugo Houyez Sep 30 '16 at 14:13
  • I have tried several times it didn't work for me. I have used over 3hours trying to figure it out! – Charpman Sep 30 '16 at 15:36

2 Answers2

3

Try this solution by @user6442395

1) Install jdk1.8...

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

3) Click Ok.

Community
  • 1
  • 1
Arsen Sench
  • 438
  • 4
  • 18
  • I have tried this many times but it keep reverting it back to the embedded JDK Folder I don't know what to do again but I will definitely try again. I appreciate your reply! – Charpman Sep 30 '16 at 15:39
  • I think it worked but I have another problem saying "unable to start daemon process" what can I do? – Charpman Sep 30 '16 at 19:36
  • Try deleting your .gradle from C:\Users\ directory – Arsen Sench Sep 30 '16 at 19:43
  • Do I need to delete it when my android studio is opened or i should close my android studio. I have deleted it once but i still see again. – Charpman Sep 30 '16 at 19:53
  • Delete it when Studio is closed. After open studio. It should regenerate that file again. But also it should work normally – Arsen Sench Sep 30 '16 at 20:00
  • I have deleted the .gradle folder but when I run Android Studio again this the messgae i recieved " Error:Unable to start the daemon process. This problem might be caused by incorrect configuration of the daemon. For example, an unrecognized jvm option is used. Please refer to the user guide chapter on the daemon at https://docs.gradle.org/2.14.1/userguide/gradle_daemon.html Please read the following process output to find out more: ----------------------- Error occurred during initialization of VM Could not reserve enough space for 1572864KB object heap " – Charpman Sep 30 '16 at 20:18
  • 1) Click on file and select a other setting from dropdown menu and then select default setting. 2) Select build,Execution,Deployment option. 3) Select Compiler 4) Here add a following line in Additional build process VM option -Xmx3072m -XX:MaxPermSize=524m as show here http://i.stack.imgur.com/iPVIZ.png – Arsen Sench Sep 30 '16 at 21:51
2

You have to change the jdk location in project structure

Follow those steps

Go to file -> project structure -> sdk location

Unselect Use embedded jdk(recommended)

Then Change the jdk location to C:\Program Files\java\jdk1.8.0_101

Then click OK and wait for the build to finish

Yusuf Adefolahan
  • 312
  • 2
  • 11