当前位置:   article > 正文

unity打包apk运行于google手机

unity打包apk运行于google手机

第一次打包apk运行于Pixel 7 Pro 一直提示安装包无法安装

untiy版本2020.1.0f1

有两点需要注意

第一

Scrpting Backend 需要选择 IL2CPP
勾选 ARM64

第二

勾选
Custom Main Mainfest

在Assets -> Plugins -> Android文件夹下
AndroidMainfest
中增加android:exported="true"

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- GENERATED BY UNITY. REMOVE THIS COMMENT TO PREVENT OVERWRITING WHEN EXPORTING AGAIN-->
  3. <manifest
  4.     xmlns:android="http://schemas.android.com/apk/res/android"
  5.     package="com.unity3d.player"
  6.     xmlns:tools="http://schemas.android.com/tools">
  7.     <application>
  8.         <activity android:name="com.unity3d.player.UnityPlayerActivity"
  9.                   android:theme="@style/UnityThemeSelector"
  10.                   android:exported="true">
  11.             <intent-filter>
  12.                 <action android:name="android.intent.action.MAIN" />
  13.                 <category android:name="android.intent.category.LAUNCHER" />
  14.             </intent-filter>
  15.             <meta-data android:name="unityplayer.UnityActivity" android:value="true" />
  16.         </activity>
  17.     </application>
  18. </manifest>

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家自动化/article/detail/222844
推荐阅读
相关标签
  

闽ICP备14008679号