Unity3d: how to solve the problem when exporting Android apk files? unity3dapk
Dog planing Learning Network] This morning, I started to build an unity3d game to the android mobile phone to run it. As a result, I encountered many problems. The first problem encountered was that the following Error was prompted during the build process: Error building Player: UnityException: No platforms foundAndroid SDK does not include any platforms! Did you run Android SDK setup to install the platform (s )? Minimum platform required for build is Android 4.0 (API level 14) Solution: an error occurs after the android sdk manager is used to update the android sdk. Open the sdk directory C: sdkplatforms and find that the folder name is android-4.2, change the folder name to android-17. The release continues, and another problem occurs: Error building Player: UnityException: Couldn't find Android device No Android devices found. If you are sure that device is attached then it might be USB driver problem, for details please check Android SDK Setup section in Unity Manual. Solution: After the android Virtual Machine AVD Manager is started or the device connected to the mobile phone debugging device solves the two problems above, the apk installation package is finally generated. Next, install the generated apk and run it on the android virtual machine. The following error occurs during Installation: android Installation error: INSTALL_FAILED_CONTAINER_ERROR solution: In PlayerSetting of untiy3d, change the Install Location settings from the original PreferExternal to Automatic.
After installing the apk file and running it in the android simulator, the following error occurs:
Solution: select the Use Host GPU option in the parameter settings of the simulator.
Finally, the game is running in the simulator. Is it cool?
12150723-5cbda98c306846d5b4b0b0eb6c62f325.png (252.26 KB, download times: 0) Download the attachment and save it to the album. Upload 1 minute ago Disclaimer: This document is from the "Dog Learning Network" community. It is an Unity3D learning article published by netizens. If any content infringes on your rights and interests, please contact the official website, it will be processed in real time. More highlights: www.gopedu.com |