开发者社区> 问答> 正文

应用研发平台EMAS报错怎么解决?

应用研发平台EMAS报错java.lang.NoClassDefFoundError: Failed resolution of: Lcom/huawei/hms/common/ApiException; 华为手机,怎么解决?

uniapp 接入阿里推送插件 华为鸿蒙3.0 真机 应用启动 后 闪退 报错如下
2024-07-15 17:41:05.079 19704-19896 hwbr_engin...eiKeystore cigar.jjw.com.cigarvip I getSecretKeyFromKeystore: Android KeyStore Access Success
2024-07-15 17:41:05.088 19704-19896 hwbr_engin...eiKeystore cigar.jjw.com.cigarvip E Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'javax.crypto.SecretKey java.security.KeyStore$SecretKeyEntry.getSecretKey()' on a null object reference
2024-07-15 17:41:05.132 19704-19896 hwbr_engin...eiKeystore cigar.jjw.com.cigarvip I HuaweiKeystore generate new keystore.
2024-07-15 17:41:05.135 19704-20048 System.err cigar.jjw.com.cigarvip W java.lang.NoClassDefFoundError: Failed resolution of: Lcom/huawei/hms/common/ApiException;
2024-07-15 17:41:05.135 19704-20048 System.err cigar.jjw.com.cigarvip W at com.alibaba.sdk.android.push.huawei.HuaWeiRegister$2.run(HuaWeiRegister.java:91)
2024-07-15 17:41:05.135 19704-20048 System.err cigar.jjw.com.cigarvip W at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
2024-07-15 17:41:05.135 19704-20048 System.err cigar.jjw.com.cigarvip W at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
2024-07-15 17:41:05.135 19704-20048 System.err cigar.jjw.com.cigarvip W at java.lang.Thread.run(Thread.java:929)
2024-07-15 17:41:05.135 19704-20048 System.err cigar.jjw.com.cigarvip W Caused by: java.lang.ClassNotFoundException: com.huawei.hms.common.ApiException
2024-07-15 17:41:05.135 19704-20048 System.err cigar.jjw.com.cigarvip W ... 4 more
2024-07-15 17:41:05.135 19704-20048 UncaughtEx...ionHandler cigar.jjw.com.cigarvip E java.lang.NoClassDefFoundError: Failed resolution of: Lcom/huawei/hms/common/ApiException;
2024-07-15 17:41:05.135 19704-20048 Process cigar.jjw.com.cigarvip I Sending signal. PID: 19704 SIG: 9
2024-07-15 17:41:05.218 1762-2010 InputDispatcher system_server E channel '9d3e009 cigar.jjw.com.cigarvip/io.dcloud.PandoraEntryActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
2024-07-15 17:41:05.287 3411-4056 DollieAdapterService com.huawei.systemserver E notifyActivityState pkg:cigar.jjw.com.cigarvip/io.dcloud.PandoraEntryActivity state:20 fg:false mUid:10510

展开
收起
嘟嘟嘟嘟嘟嘟 2024-07-23 18:13:45 20 0
1 条回答
写回答
取消 提交回答
  • 使用的是云端插件 建议使用 https://ext.dcloud.net.cn/plugin?id=7628 验证一下,另外uniapp 移动插件使用场景目前不支持不支持离线打包。
    3578dcff715ff771426e9875e2c273b6.png
    aff88b4a148e5e53025bb9735491940e.png
    d0c8772dc8a5d4b47c18994ba8727e9b.png此回答整理自钉群“应用研发平台EMAS开发者交流群”

    2024-07-23 21:34:57
    赞同 展开评论 打赏
来源圈子
更多
收录在圈子:
基于阿里巴巴以及合作伙伴的最佳实践,围绕大前端、云原生领域的相关技术热点(小程序、Serverless、应用中间件、低代码、DevOps)展开行业探讨,与开发者一起探寻云原生时代应用研发的新范式。
相关文档: 移动研发平台
问答排行榜
最热
最新

相关电子书

更多
五天玩转EMAS Serverless 立即下载
EMAS平台全景介绍 立即下载
低代码开发师(初级)实战教程 立即下载