第一次打包apk運(yùn)行于Pixel 7 Pro 一直提示安裝包無法安裝
untiy版本2020.1.0f1
有兩點需要注意
第一
Scrpting Backend 需要選擇 IL2CPP
勾選 ARM64
第二
勾選
Custom Main Mainfest
文章來源:http://www.zghlxwxcb.cn/news/detail-835329.html
在Assets -> Plugins -> Android文件夾下
AndroidMainfest
中增加android:exported="true"文章來源地址http://www.zghlxwxcb.cn/news/detail-835329.html
<?xml version="1.0" encoding="utf-8"?>
<!-- GENERATED BY UNITY. REMOVE THIS COMMENT TO PREVENT OVERWRITING WHEN EXPORTING AGAIN-->
<manifest
? ? xmlns:android="http://schemas.android.com/apk/res/android"
? ? package="com.unity3d.player"
? ? xmlns:tools="http://schemas.android.com/tools">
? ? <application>
? ? ? ? <activity android:name="com.unity3d.player.UnityPlayerActivity"
? ? ? ? ? ? ? ? ? android:theme="@style/UnityThemeSelector"
? ? ? ? ? ? ? ? ? android:exported="true">
? ? ? ? ? ? <intent-filter>
? ? ? ? ? ? ? ? <action android:name="android.intent.action.MAIN" />
? ? ? ? ? ? ? ? <category android:name="android.intent.category.LAUNCHER" />
? ? ? ? ? ? </intent-filter>
? ? ? ? ? ? <meta-data android:name="unityplayer.UnityActivity" android:value="true" />
? ? ? ? </activity>
? ? </application>
</manifest>
到了這里,關(guān)于unity打包apk運(yùn)行于google手機(jī)的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!