jpush-react-native icon indicating copy to clipboard operation
jpush-react-native copied to clipboard

6.2版本 报错 Could not invoke JPushModule.init Didn't find class "cn.jiguang.api.JDispatchAction"

Open 86lanjie opened this issue 4 years ago • 2 comments

你的运行环境

win 10 平台 安卓环境

  • 插件版本:
  • react-native 版本: "react-native": "^0.62.2",

期望效果

集成推送模块

实际效果

JPush.init() 调用时直接闪退

image

image

重现步骤

image image image image image

Debug logs

包括 Android 或 iOS 的日志: image

86lanjie avatar Oct 17 '20 09:10 86lanjie

手动Link

zetaoWu avatar Nov 03 '20 09:11 zetaoWu

造成的原因是:build.gradle中,如果按文档修改了applicationId,那么就会导致JPushModule的路径不正确,以至于JPush.init()执行时JPushModule.init不存在。我认为解决的方法是:恢复之前默认的applicationId

mack-wang avatar Dec 06 '20 07:12 mack-wang