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