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 小时前
Unity 性能优化 之 编辑器创建资源优化( 工作流 | 场景 | 预制体)
unity·编辑器·游戏引擎
智慧地球(AI·Earth)7 小时前
给AI配一台手机+电脑?智谱AutoGLM上线!
人工智能·智能手机·电脑
1uther8 小时前
Unity核心概念⑨:Screen
开发语言·游戏·unity·c#·游戏引擎
xiaocao_10238 小时前
怎么在手机上选择一款好用的桌面待办清单工具
智能手机·待办工具
死也不注释10 小时前
【Unity UGUI 交互组件——Slider(7)】
unity·游戏引擎·交互
程序猿多布15 小时前
XLua教程之热补丁技术
unity·c#·lua·xlua
AIOT魔法师17 小时前
修复Android studio的adb无法连接手机问题
adb·智能手机·android studio
老六ip加速器17 小时前
手机ip隔离方法
tcp/ip·智能手机·php
SmalBox18 小时前
【光照】Unity中的[光照模型]概念辨析
unity·渲染
挂科是不可能出现的19 小时前
unity导入blender动画
unity·游戏引擎·blender