一. 什么是AndroidManifest
AndroidMainfest是Android程序的全局配置表,提供了Android程序运行的必要信息,例如活动,服务,广播接收机,内容提供商等功能注册,既是Android程序运行前系统必须拥有的信息。
相关文章链接:
https://blog.csdn.net/aiyan1111111/article/details/52858003
https://www.jianshu.com/p/3b5b89d4e154
官方 :https://developer.android.com/guide/topics/manifest/manifest-intro?hl=zh-cn
二. unity中的AndroidManifest
Unity发布Android的APK时
- 如果在Plugins/Android,不存在AndroidManifest文件,会使用Unity默认的AndroidManifest文件。
默认的AndroidManifest文件目录在:Unity\Editor\Data\PlaybackEngines\AndroidPlayer\Apk
如果存在AndroidManifest文件,那么Unity会使用它代替默认的AndroidManifest文件。并将unity中的配置写入该文件。
默认的AndroidManifest.xml:xmlns:android="http://schemas.android.com/apk/res/android" package="com.unity3d.player" xmlns:tools="http://schemas.android.com/tools" android:installLocation="preferExternal"> <supports-screens android:

本文深入探讨了AndroidManifest在Unity中的作用与配置,包括其在Android程序中的全局配置功能,Unity打包时的处理方式,以及如何正确设置入口Activity,确保应用正常启动。

6427

被折叠的 条评论
为什么被折叠?



