Unity3d: how to solve the problem when exporting Android apk files? unity3dapk

Source: Internet
Author: User
Tags android sdk manager

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.