Gradle project sync failed on Android Studio 3.0.1

Viewed 33772

I am installing Android Studio 3.0.1 for the first time on my laptop, and I couldn't create my first Hello World app.

I get the following error:

Create process failed, error=216
Error:
Consult your IDE log for more details

The error can be seen on this screenshot.

5 Answers

Go to File -> Project Structure,uncheck "Use embedded JDK" and select the 32-bit JDK.

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.

1st Solution : -

  • Goto File -> Invalidate caches / Restart

2nd Solution : -

  1. Shutdown Android Studio
  2. Rename .gradle folder in the user home directory
  3. Restart Android Studio 4.Rebuild/Clean project.
  4. Done

This worked for me, using the solution Android Studio provides, just click on the link in the bottom left corner:

  1. Click the error message at top "Gradle project sync failed" where the text says ´Open message view´
  2. In the "Message Gradle Sync" window on the bottom left corner, click the provided solution "Install missing ... "
  3. Repeat 1 and 2 if necessary

Android Studio providing a solution

Related