Reputation: 65
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.
Upvotes: 4
Views: 34362
Reputation: 132
Upvotes: 1
Reputation: 1
First on the yellow error banner click open 'messages' view see pic1 then in the new view that opened up click install ___________ see pic2 & pic3 then click try again if you get the same error in the messages view then you will have to install it manually- If one or both of these do not install, put the downloading ______________ (see pic4) into chrome and it will download it, now extract the file and put it in the right place.
The build tools place is
C:\Users\<name of active user>\AppData\Local\Android\Sdk\build-tools\26.0.2
The ndk package place is:
C:\Users\<name of active user>\AppData\Local\Android\Sdk\ndk-bundle
Delete all the files in the folder and paste the new files from the folder you just downloaded and extracted. The files you download and the ones you paste in should look similar but not exactly the same. Once you do this the problem should be solved and you can press "try again"
Upvotes: 0
Reputation: 1351
This worked for me, using the solution Android Studio provides, just click on the link in the bottom left corner:
Upvotes: 0
Reputation: 9655
Go to File -> Project Structure,uncheck "Use embedded JDK" and select the 32-bit JDK.
Upvotes: 2
Reputation: 59004
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.
Upvotes: 1