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"

XML 复制代码
<?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>
相关推荐
3 小时前
3D碰撞检测系统 基于SAT算法+Burst优化(Unity)
算法·3d·unity·c#·游戏引擎·sat
dzj20218 小时前
Unity是如何把3D场景显示到屏幕上的——Unity的渲染过程
3d·unity·游戏引擎·渲染·图形学
死也不注释1 天前
【鸡零狗碎记录】
unity·c#
★YUI★1 天前
学习游戏制作记录(剑投掷技能)7.26
学习·游戏·unity·c#
★YUI★2 天前
学习游戏制作记录(克隆技能)7.25
学习·游戏·unity·c#
不绝1912 天前
ARPG开发流程第一章——方法合集
算法·游戏·unity·游戏引擎
玩代码2 天前
Unity里的加力
开发语言·unity
贵州晓智信息科技2 天前
Unity 性能优化全攻略
unity·性能优化·游戏引擎
UWA2 天前
UWA DAY 2025 游戏开发者大会|全议程
游戏·unity·性能优化·游戏开发·uwa·unreal engine
unicrom_深圳市由你创科技2 天前
Unity 的UI动画调节
ui·unity·游戏引擎