
# 构建打包
打包的设置，相关路径，产出文件，文件使用方法描述。
1. 平台设置
   将打包平台设置为Android，等待Unity重新编译完成。
   图1平台设置   
   ![](https://support.huaweicloud.com/aroo-aislt/zh-cn_image_0000001458312516.png) 
2. 打包设置 PlayerSettings设置：
   - **Resolution and Presentation：** Default Orientation 选择 Landscape Left。
     图2打包设置   
     ![](https://support.huaweicloud.com/aroo-aislt/zh-cn_image_0000001458792140.png) 
   
   
   
   - **Other Settings：**
     Auto Graphic API 勾选。
     Minimum API Level 选择Android 9.0 'Pie'(API Level 28)。
     Target API Level 选择API level 31。
     Install Location 选择 Force Internal。
     Internet Access 选择 Require。
     Write Permission 选择 Internal。
     图3其他设置   
     ![](https://support.huaweicloud.com/aroo-aislt/zh-cn_image_0000001458632224.png) 
   
   
   
   - **Publishing Settings：**
     Custom Main Manifest 勾选。
     Custom Main Gradle Template 勾选。
     Custom Base Gradle Template 勾选。
     Custom Gradle Properties Template 勾选。
     图4发布设置   
     ![](https://support.huaweicloud.com/aroo-aislt/zh-cn_image_0000001508431977.png) 
    
3. 包名设置 "PlayerSettings \> Player"中分别设置"Company Name"，"Product Name"，"Version"。
   "PlayerSettings \> Other Settings"中更改"Package Name"。
   图5包名设置   
   ![](https://support.huaweicloud.com/aroo-aislt/zh-cn_image_0000001508272209.png) 
4. 打包及运行 点击"Build Settings \> Build"可以打出apk文件。
   点击"Build Settings \> Build And Run"可以打出apk文件并且直接安装到设备中运行。
   图6打包及运行   
   ![](https://support.huaweicloud.com/aroo-aislt/zh-cn_image_0000001458472296.png) 
 
