Gjm:unity3d HIAR-"QuickStart" v. Exporting Android projects, applications

Source: Internet
Author: User

Export Android Engineering, apps

Before you begin, be sure to save your project and confirm that you have installed the Android SDK and JDK. Please refer to the following links for installation operations:

Build the development environment

Step 1. Set up Android SDK and JDK path

In unity, click Edit > Preferences, and in the Unity Preferences dialog box that pops up, click the External Tools option to set the Android SDK and JDK path to the root of the installed SDK, respectively. Recorded.

Step 2. Select Platform

In Unity, click File > Build Settings ..., select the Android platform in the pop-up Build Settings dialog box, and click Switch Platform, and click the Add current to add the project to S Cene in the Build window (make sure it is checked).

Step 3. Apply Settings

In the Build Settings dialog box, click Player Settings ..., find Settings for Android in the Inspector window, click the Resolution and Presentation option, and Defaul T Orientation is set to Landscape left.

Note: The generated Android app does not support Auto Rotation for the time being, and other mobile phones do not support Portrait Upside down mode due to the phone's own system reasons.

Click the other Settings option, uncheck the Auto Graphics API, and then delete the excess option at the Graphics API, leaving only the OpenGLES2.

Then, fill in the app's APK package name in Bundle Identifier and set the Minimum API level to Android 4.0 or later.

Step 4. Build Android Apps

When you're done, click Build in the Build Settings dialog box, save the APK and start building your app. During this process, you may be asked to update the Android SDK and JDK, follow the prompts to update.

You can see the APK file when the export is successful.

Step 5. Export Android Project

If you want to export the current project as an Android project, you will need to check Google Android project in Step 4 in the Build Settings dialog box and click Export.

The exported project file looks like this:

Gjm:unity3d HIAR-"QuickStart" v. Exporting Android projects, applications

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.