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>
相关推荐
公爵爱学习2 小时前
无人机多点巡航
游戏引擎·无人机·cocos2d
公爵爱学习3 小时前
关于无人机定点飞行的一些解释和Matlab程序绘制
游戏引擎·无人机·cocos2d
wgslucky17 小时前
Godot GDScript初学者遇到的问题记录
游戏引擎·godot
点心的游戏开发世界20 小时前
GDScript 入门笔记(五):函数
笔记·游戏引擎·godot
谢斯1 天前
[unity]如何在unity中添加newtonsoft-json
unity·json·游戏引擎
全速向光1 天前
JoiPlay 模拟器:在手机上畅玩你所热爱的独立游戏
游戏·智能手机
天人合一peng1 天前
Unity标记固定颜色及投影标记
unity
云雨巫山1 天前
Unity 游戏开发性能优化全景手册
unity·智能手机·性能优化·游戏引擎
maybeyaluokenai1 天前
unity build in渲染管线概述
unity·图形渲染