Build Target AndroidPlayer is not supported Supportfor build target platform AndroidPlayer is not installed Switch to windowsStandaloneSupport or exit UInity
If you are encountering the error message "Build Target AndroidPlayer is not supported. Support for build target platform AndroidPlayer' is not installed. Switch to windowsStandaloneSupport or exit Unity?", it means that you do not have the necessary Android build support installed in your Unity installation.
To resolve this issue, you have two options:
-
Switch to Windows Standalone Support: If you don't need to build for Android specifically and are okay with building for Windows instead, you can switch to the Windows Standalone platform by selecting "Switch to windowsStandaloneSupport" in the Unity prompt. This will allow you to build your project for Windows.
-
Install Android Build Support: If you want to build for Android, you need to install the necessary Android build support. To do this, follow these steps:
- Open Unity Hub (if you are using it) or directly open Unity.
- Go to the Unity Editor's "Hub" or "Preferences" (depending on your Unity version).
- In the "Installs" or "Modules" section, locate your installed Unity version.
- Click on the three dots (...) or gear icon next to the version and select "Add Modules" or "Modify".
- In the list of modules, make sure to check the "Android Build Support" checkbox.
- Click on the "Next" or "Done" button to proceed with the installation.
- Once the installation is complete, restart Unity.
After following either of these options, you should be able to build your project for either Windows or Android, depending on your choice
原文地址: https://www.cveoy.top/t/topic/hESI 著作权归作者所有。请勿转载和采集!