如何编辑的Andr​​oidManifest.xml中的PhoneGap 3编辑、Andr、oidManifest、xml

2023-09-06 07:43:27 作者:笒卿

似乎PhoneGap的生成文件时自动的config.xml 修改

It seems PhoneGap generates that file automatically when config.xml is modified.

我想补充的广告网络的活动,服务等在的Andr​​oidManifest.xml ,但我找不到编辑该文件的正确方法。

I wish to add Ad network's activities, services, etc in AndroidManifest.xml but I can't find the correct way to edit that file.

推荐答案

PhoneGap的使用config.xml中创建AndroidManifest.xml中当您添加了Android平台的项目。 当你添加插件和建设项目它也被修改(例如,它增加了对插件所需的权限)。

Phonegap uses config.xml to create androidmanifest.xml when you add the android platform to a project. It is also modified when you add plugins and build the project (for example, it adds the required permission for the plugin).

但你也可以手动编辑平台/安卓/ AndroidManifest.xml中添加权限,配置活动或应用程序...它不会丢失文件当你重建项目。

But you can also manually edit the file in platforms/android/AndroidManifest.xml to add permissions, configure the activity or the application... it will not be lost when you rebuild your project.

 
精彩推荐