Unable to List Target Platforms: Resolving Android SDK Path Error
When attempting to build an old version of Unity (v_4.6.3), users may encounter the error "Unable to list target platforms. Please make sure the android sdk path is correct." This error stems from an incorrect Android SDK path within the Unity Editor.
To resolve this issue, follow the updated solution:
1. Download and Unzip SDK Tools:
- For Windows: Obtain "tools_r25.2.3-windows.zip" and extract its contents.
- For macOSX: Download and extract "tools_r25.2.3-macosx.zip."
2. Update SDK Path in Unity:
- Navigate to Edit -> Preferences -> External Tools.
- Add the path of the extracted SDK directory to the SDK field.
Alternative Solutions:
-
Uninstall Old SDK Tools: Remove SDK Tools 25 and 26, along with SDK Platform-Tools and SDK Tools. Reinstall older versions of these tools.
-
Move SDK without Spaces: Ensure that your Android SDK path contains no spaces. Consider moving the files to a folder like C:AndroidSDK.
-
Update Unity Editor: Install the latest version of Unity, which may include updates to the Android SDK tooling.
-
Re-download SDK: Download a fresh copy of the SDK and copy it to the correct path (C:AndroidSDKAndroid-sdk).
-
Update SDK through Unity: Build for Android again and accept the prompt to update the SDK. This will automatically install the necessary SDK components.
The above is the detailed content of Why Can't I See Target Platforms in My Unity 4.6.3 Build?. For more information, please follow other related articles on the PHP Chinese website!