饶飞成
饶飞成
  • 发布:2025-10-24 22:22
  • 更新:2025-10-24 22:22
  • 阅读:13

uniapp项目通过AndroidManifest.xml增加自定义meta-data

分类:uni-app

https://uniapp.dcloud.net.cn/tutorial/app-nativeresource-android.html#%E5%BA%94%E7%94%A8%E6%B8%85%E5%8D%95%E6%96%87%E4%BB%B6-androidmanifest-xml
参考上方官方网站的说明,在uniapp项目根路径增加了AndroidManifest.xml,但是最终通过云打包(快速安心打包)后生产的apk中,AndroidManifest.xml里没有我增加的内容。

uniapp项目根路径下增加的AndroidManifest.xml内容如下:

<?xml version="1.0" encoding="utf-8"?>  
<manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools"  
    package="cn.test">  

    <application>  

        <meta-data android:name="com.huawei.hms.client.appid" android:value="xxxxxxx" />  

    </application>  

</manifest>
2025-10-24 22:22 负责人:无 分享
已邀请:

要回复问题请先登录注册