Android Studio 3.0无法修改JDK位置及CreateProcess error=216问题求助
Fixing Android Studio 3.0 JDK Issues & CreateProcess Error=216
Hey there, let’s work through these two frustrating issues you’re hitting with Android Studio 3.0—both are tied to the JDK setup, so we can knock them out together.
1. Forcing Android Studio to Use Your Custom JDK (Instead of the Embedded One)
I’ve run into this exact problem before—Android Studio can be stubborn about sticking to its embedded JDK even after you update the settings. Here’s how to override it:
- First, close Android Studio completely (make sure it’s not running in the background).
- Navigate to your Android Studio 3.0 config folder. On Windows, this is usually:
C:\Users\<YourUsername>\.AndroidStudio3.0 - Open the
idea.propertiesfile with a text editor like Notepad or VS Code. - Look for a line that starts with
idea.jdk. If it doesn’t exist, add it manually at the bottom of the file. - Set it to the full path of your desired JDK. For example:
(Note: Use forward slashesidea.jdk=C:/Program Files/Java/jdk1.8.0_301/or double backslashes\\in the path to avoid errors.) - Save the file and restart Android Studio. It should now pick up your custom JDK instead of the embedded one.
2. Resolving CreateProcess Error=216
That error message is telling you the JDK you’re using doesn’t match your Windows system’s architecture (32-bit vs 64-bit). Since the embedded JDK is likely the culprit here, fixing the first issue will automatically resolve this one. Here’s the extra step to make sure:
- Confirm your Windows system type: Right-click "This PC" → select "Properties" → check the "System type" field (it’ll say 32-bit or 64-bit Operating System).
- Download a JDK version that matches your system’s architecture (x86 for 32-bit, x64 for 64-bit).
- Follow the steps in the first section to set Android Studio to use this compatible JDK.
- Restart Android Studio, and the error should disappear entirely.
内容的提问来源于stack exchange,提问作者Ahmed Ezzat
相关产品推荐
相关产品推荐

