简体   繁体   English

我的 Unity 项目中没有 AndroidManifest.xml 文件

[英]No AndroidManifest.xml file in my Unity project

I can't find the AndroidManifest.xml file.我找不到 AndroidManifest.xml 文件。 I am working on a Unity project and uploading the app to google play console.我正在开发一个 Unity 项目并将应用程序上传到 google play console。

I searched in the places:我在这些地方搜索:

  • Assets\Plugins\Android -> The "Plugins" folder does not exist. Assets\Plugins\Android -> “Plugins”文件夹不存在。
  • Temp\StagingArea -> The "StagingArea" folder does not exist. Temp\StagingArea -> “StagingArea”文件夹不存在。
  • C:\Program Files\Unity\Hub\Editor\2020.3.26f1\Editor\Data\PlaybackEngines\AndroidPlayer\Apk -> the existing files are: "LauncherManifest.xml" and "UnityManifest.xml". C:\Program Files\Unity\Hub\Editor\2020.3.26f1\Editor\Data\PlaybackEngines\AndroidPlayer\Apk -> 现有文件为:“LauncherManifest.xml”和“UnityManifest.xml”。

I found the AndroidManifest.xml file in the places :我在以下位置找到了 AndroidManifest.xml 文件

  • C:\Program Files\Unity\Hub\Editor\2020.3.26f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\sources\third_party\vulkan\src\build-android\cmake\layerlib\src\main\AndroidManifest.xml C:\Program Files\Unity\Hub\Editor\2020.3.26f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\sources\third_party\vulkan\src\build-android\cmake\layerlib\src\main\AndroidManifest.xml
  • C:\Program Files\Unity\Hub\Editor\2020.3.26f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\sources\third_party\vulkan\src\build-android\AndroidManifest.xml C:\Program Files\Unity\Hub\Editor\2020.3.26f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\sources\third_party\vulkan\src\build-android\AndroidManifest.xml

But I think these are not the correct files that needed.但我认为这些不是所需的正确文件。

What can i do?我能做什么? Thanks for the advices and the answers.感谢您的建议和答案。

Into Unity 3d do to Player Settings -> Player -> Publishing Settings -> Build-> Custom Main Manifest (check).进入 Unity 3d 执行 Player Settings -> Player -> Publishing Settings -> Build-> Custom Main Manifest(勾选)。 Now go in Project Assets\Plugins\Android\AndroidManifest.xml.现在 go 在 Project Assets\Plugins\Android\AndroidManifest.xml 中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我的Unity项目上没有AndroidManifest.xml - No AndroidManifest.xml on my Unity project 如何保存AndroidManifest.xml文件Unity? - How to save AndroidManifest.xml file Unity? 在 Unity 项目中更改 AndroidManifest.xml 元数据值 - Change AndroidManifest.xml MetaData Value in Unity Project GooglePlayGamesManifest.plugin 缺少 AndroidManifest.xml 文件。 [统一] - GooglePlayGamesManifest.plugin is missing AndroidManifest.xml file. [Unity] Unity Android 构建错误:&gt; 非法字符<?>在索引 7:..\\..\\l?brary_man?fest\\release\\AndroidManifest.xml - Unity Android Build Error: > Illegal char <?> at index 7: ..\..\l?brary_man?fest\release\AndroidManifest.xml 查找Unity3D生成的“AndroidManifest.xml”中的“Android类名” - Finding the “Android class name” in “AndroidManifest.xml” generated by Unity3D 在 Unity3D 构建中包含 AndroidManifest.xml 会导致移动应用程序立即崩溃 - Including AndroidManifest.xml in a Unity3D build causes mobile application to instantly crash Unity3D 如何为 android 插件添加权限到 AndroidManifest.xml - Unity3D how to add permissions to AndroidManifest.xml for android plugin AndroidManifest.xml中的Android版本代码? - Android version code at AndroidManifest.xml? 缺少 AndroidManifest.xml 尝试重新导入插件 - AndroidManifest.xml is missing try reimporting the plugin
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM