安装Android Studio时未显示Android SDK选项,无法用于Unity 3D项目
Fix: Android SDK Option Missing in Android Studio for Unity Projects
Hey Waqas, sorry to hear you're hitting this roadblock—let's get your Android SDK set up for Unity without any hassle. Here are the most reliable solutions:
Solution 1: Manually Open Android SDK Manager (If Android Studio is Already Installed)
If you skipped the SDK installation during Android Studio's initial setup, you can add it later directly from the IDE:
- Launch Android Studio. On the welcome screen, click More Actions (the three dots) and select SDK Manager.
- If you’re already in a project, go to the top toolbar:
Tools→SDK Manager. - In the SDK Manager window:
- Switch to the SDK Platforms tab. Check the Android version(s) compatible with your Unity project (Unity 2022+ works best with Android 12/13/14).
- Switch to the SDK Tools tab. Make sure to check these critical components:
- Android SDK Build-Tools
- Android SDK Platform-Tools
- Android SDK Command-line Tools
- (Optional) NDK (Side by side) if your Unity project requires native code support
- Click Apply to start downloading and installing the selected components.
Solution 2: Re-Run Android Studio Installer with Custom Setup
If you want to re-do the installation and ensure the SDK is included from the start:
- Find the Android Studio installer executable you used earlier (or download it again if needed).
- Run the installer and select the Custom installation type (instead of Standard).
- On the component selection screen, you’ll see the Android SDK option—make sure it’s checked, along with any other tools you need (like Android Emulator if you want to test builds).
- Follow the rest of the prompts to complete the installation.
Step 3: Link the SDK to Unity
Once the SDK is installed, you need to tell Unity where to find it:
- Open your Unity project.
- Go to
Edit→Preferences(Windows) orUnity→Settings(Mac). - Navigate to the External Tools section.
- Click the folder icon next to Android SDK Location and select the path to your SDK folder. By default, this is:
- Windows:
C:\Users\[Your Username]\AppData\Local\Android\Sdk - Mac:
~/Library/Android/sdk
- Windows:
- Click Apply and OK to save the settings.
Quick Notes
- Make sure your Unity version is compatible with the Android SDK version you install—check Unity’s official documentation for version compatibility if you’re unsure.
- Ensure you have a stable internet connection while downloading SDK components, as some files are large.
Let me know if any step doesn’t work for you—I’m happy to help troubleshoot further!
内容的提问来源于stack exchange,提问作者iowaqas
相关产品推荐
相关产品推荐

