Android Studio设置JDK路径失效,出现Create Process error=216错误
Hey there, let's work through this issue step by step. That Create Process error = 216 almost always stems from a 32-bit vs 64-bit compatibility mismatch—since you're on Windows 8 32-bit, the embedded JDK bundled with Android Studio 3.0.1 is likely 64-bit, which your system can't run properly. And the reason the "Used Embedded JDK" checkbox keeps re-enabling itself? It's probably because Android Studio isn't saving your custom JDK setting correctly, often due to permission restrictions or a misconfigured config file.
Here's how to fix both problems:
Step 1: Install a compatible 32-bit JDK
First, make sure you have a 32-bit version of JDK 8 installed. API level 27 works best with JDK 8, and newer JDK versions might cause extra compatibility headaches with this older Android Studio release.
Step 2: Force Android Studio to use your custom JDK (bypass the GUI glitch)
The GUI setting might not stick because of how Android Studio reads its core config files. Let's edit them directly:
- Close Android Studio completely (make sure no background processes are running).
- Navigate to your Android Studio installation folder (usually
C:\Program Files (x86)\Android\Android Studio). - Head into the
bindirectory, find the file namedstudio.exe.vmoptions(this is the config for 32-bit Studio) and open it with Notepad. - Add this line at the very end of the file:
Replace-Djava.home=C:\Path\To\Your\32-bit\JDKC:\Path\To\Your\32-bit\JDKwith the actual path to your 32-bit JDK installation (e.g.,C:\Program Files (x86)\Java\jdk1.8.0_291). - Save the file and restart Android Studio.
Step 3: Verify the fix
Once Studio opens, go to File > Project Structure > SDK Location—you should see your custom 32-bit JDK path listed, and the "Used Embedded JDK" checkbox should stay unchecked. Try running your project again; the Create Process error = 216 should be resolved.
Extra troubleshooting tips
- If the issue persists, run Android Studio as Administrator when making config changes—permission issues can prevent settings from being saved.
- Ensure your Windows 8 32-bit has all the latest system updates installed; missing core libraries can also trigger this error.
内容的提问来源于stack exchange,提问作者Akshay Pawar

