zhangdaren
zhangdaren
  • 发布:2019-04-22 15:20
  • 更新:2020-11-27 16:30
  • 阅读:4191

离线打包时,遇到这个no value for apk.applicationId is provided错误

分类:uni-app

143行,为基座删除的部分权限中的“    <uses-feature android:name="android.hardware.camera" />”  

//warning信息  
d:\xxxxxxxxx\app\src\main\AndroidManifest.xml:143:9-408:50 Warning:  
    Element meta-data#WX_APPID at AndroidManifest.xml:406:9-408:50 duplicated with element declared at AndroidManifest.xml:365:9-367:50  
[aps-unipush-release.aar] C:\Users\Administrator\.gradle\caches\transforms-2\files-2.1\2c155a3c5ae2209e5e1510980b38e4d1\AndroidManifest.xml:61:5-81 Warning:  
    Element uses-permission#android.permission.ACCESS_COARSE_LOCATION at [aps-unipush-release.aar] AndroidManifest.xml:61:5-81 duplicated with element declared at [aps-unipush-release.aar] AndroidManifest.xml:23:5-81、  

//以下是红色报错部分  
d:\xxxxxxxxx\app\src\main\AndroidManifest.xml Error:  
    Attribute action#${apk.applicationId}.__CREATE_NOTIFICATION@name at AndroidManifest.xml requires a placeholder substitution but no value for <apk.applicationId> is provided.  
d:\xxxxxxxxx\app\src\main\AndroidManifest.xml Error:  
    Attribute action#${apk.applicationId}.__REMOVE_NOTIFICATION@name at AndroidManifest.xml requires a placeholder substitution but no value for <apk.applicationId> is provided.  
d:\xxxxxxxxx\app\src\main\app\src\main\AndroidManifest.xml Error:  
    Attribute action#${apk.applicationId}.__CLEAR_NOTIFICATION@name at AndroidManifest.xml requires a placeholder substitution but no value for <apk.applicationId> is provided.  
d:\xxxxxxxxx\app\src\main\app\src\main\AndroidManifest.xml Error:  
    Attribute action#${apk.applicationId}.__CLILK_NOTIFICATION@name at AndroidManifest.xml requires a placeholder substitution but no value for <apk.applicationId> is provided.  
d:\xxxxxxxxx\app\src\main\app\src\main\AndroidManifest.xml:285:9-287:57 Error:  
    Attribute meta-data#PUSH_APPSECRET@value at AndroidManifest.xml:285:9-287:57 requires a placeholder substitution but no value for <plus.unipush.appsecret> is provided.

如上所示,与android-hello项目,替换了build.gradle和AndroidManifest.xml均报错,网上查无此错误

看起来像是unipush-release.aar引起的?

求大佬们赐教,感谢~

2019-04-22 15:20 负责人:无 分享
已邀请:
DCloud_Android_zl

DCloud_Android_zl

SDK中存在一个叫“unipush离线集成指南.md”的文件,看到了吗?

  • zhangdaren (作者)

    非常感谢,基本得到解决了

    2019-04-22 16:30

  • l***@163.com

    看了,照做的,文档中说,所有权限配置在aar中,但是启动的时候还是会提示没有push权限

    2019-09-19 11:31

5***@qq.com

5***@qq.com - 码农说

这怎么处理 ,我也遇到这个问题

  • zhangdaren (作者)

    把uni-push删掉再试试

    2019-06-29 15:23

  • 6***@qq.com

    回复 zhangdaren: 删除了那不就没有uni-push功能了吗

    2019-08-17 11:46

2***@qq.com

2***@qq.com

    Element uses-permission#android.permission.WAKE_LOCK at [torch-plcsjsdk-5.17.3157.aar] AndroidManifest.xml:28:5-68 duplicated with element declared at [torch-plcsjsdk-5.17.3157.aar] AndroidManifest.xml:18:5-68  
/Users/coywoo/Music/AppDev/prolog-wms-ceshi/app/src/main/AndroidManifest.xml Error:  
    Attribute action#${apk.applicationId}.__CREATE_NOTIFICATION@name at AndroidManifest.xml requires a placeholder substitution but no value for <apk.applicationId> is provided.  
/Users/coywoo/Music/AppDev/prolog-wms-ceshi/app/src/main/AndroidManifest.xml Error:  
    Attribute action#${apk.applicationId}.__REMOVE_NOTIFICATION@name at AndroidManifest.xml requires a placeholder substitution but no value for <apk.applicationId> is provided.  
/Users/coywoo/Music/AppDev/prolog-wms-ceshi/app/src/main/AndroidManifest.xml Error:  
    Attribute action#${apk.applicationId}.__CLEAR_NOTIFICATION@name at AndroidManifest.xml requires a placeholder substitution but no value for <apk.applicationId> is provided.  
/Users/coywoo/Music/AppDev/prolog-wms-ceshi/app/src/main/AndroidManifest.xml Error:  
    Attribute action#${apk.applicationId}.__CLILK_NOTIFICATION@name at AndroidManifest.xml requires a placeholder substitution but no value for <apk.applicationId> is provided.  
/Users/coywoo/Music/AppDev/prolog-wms-ceshi/app/src/main/AndroidManifest.xml:292:9-294:53 Error:  
    Attribute meta-data#PUSH_APPID@value at AndroidManifest.xml:292:9-294:53 requires a placeholder substitution but no value for <plus.unipush.appid> is provided.  
/Users/coywoo/Music/AppDev/prolog-wms-ceshi/app/src/main/AndroidManifest.xml:295:9-297:54 Error:  
    Attribute meta-data#PUSH_APPKEY@value at AndroidManifest.xml:295:9-297:54 requires a placeholder substitution but no value for <plus.unipush.appkey> is provided.  
/Users/coywoo/Music/AppDev/prolog-wms-ceshi/app/src/main/AndroidManifest.xml:298:9-300:57 Error:  
    Attribute meta-data#PUSH_APPSECRET@value at AndroidManifest.xml:298:9-300:57 requires a placeholder substitution but no value for <plus.unipush.appsecret> is provided.  

See http://g.co/androidstudio/manifest-merger for more information about the manifest merger.  

Execution failed for task ':app:processReleaseMainManifest'.  
> Manifest merger failed with multiple errors, see logs

我也是这个问题,无解

该问题目前已经被锁定, 无法添加新回复