请选择 进入手机版 | 继续访问电脑版
热门问答
更多

[BUG] rongCloud2 集成远程推送的时候闪退

[复制链接]
曹先生 发表于 2020-10-29 20:34:05

rongCloud2模块
配置远程推送的时候,出现闪退现象,下面是安卓的闪退日志

首先配置了

  1. <intent-filter>
  2.     <action name="android.intent.action.VIEW"/>
  3.     <category name="android.intent.category.DEFAULT"/>
  4.     <data scheme="rong" host="你的包名" pathPrefix="/conversation/"/>
  5. </intent-filter>

  6. <intent-filter>
  7.    <action name="android.intent.action.VIEW" />
  8.    <category name="android.intent.category.DEFAULT" />
  9.    <data host="你的包名" path="/conversationlist" scheme="rong" />
  10. </intent-filter>


  11. <intent-filter>
  12.     <action name="android.intent.action.VIEW" />
  13.     <category name="android.intent.category.DEFAULT" />
  14.     <data host="你的包名" pathPrefix="/push_message" scheme="rong" />
  15. </intent-filter>
复制代码


其次追加配置

  1. <!-- vivo 推送配置项 -->
  2. <meta-data name="com.vivo.push.api_key" value="您的 vivo 推送平台生成 AppKey"/>
  3. <meta-data name="com.vivo.push.app_id"  value="您的 vivo 推送平台生成 AppID"/>
复制代码



出现了闪退日志
  1. Android|vivo Z1i|9
  2. java.lang.NoClassDefFoundError: Failed resolution of: Lcom/vivo/push/PushClient;
  3.         at io.rong.push.platform.vivo.VivoPush.register(VivoPush.java:20)
  4.         at io.rong.push.PushManager.register(PushManager.java:151)
  5.         at io.rong.push.PushManager$1.onGetPushType(PushManager.java:110)
  6.         at io.rong.push.pushconfig.PushConfigManager$3$1.onSuccess(PushConfigManager.java:163)
  7.         at io.rong.push.core.PushClient.handleMessage(PushClient.java:190)
  8.         at io.rong.push.core.PushClient.access$300(PushClient.java:17)
  9.         at io.rong.push.core.PushClient$PushReader.run(PushClient.java:223)
  10. Caused by: java.lang.ClassNotFoundException: Didn't find class "com.vivo.push.PushClient" on path: DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/com.dr.hsh-glqdsOfLcRBaJwmoreuUGg==/base.apk"],nativeLibraryDirectories=[/data/app/com.dr.hsh-glqdsOfLcRBaJwmoreuUGg==/lib/arm, /data/app/com.dr.hsh-glqdsOfLcRBaJwmoreuUGg==/base.apk!/lib/armeabi, /system/lib]]
  11.         at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134)
  12.         at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
  13.         at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
  14.         ... 7 more
  15. java.lang.ClassNotFoundException: Didn't find class "com.vivo.push.PushClient" on path: DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/com.dr.hsh-glqdsOfLcRBaJwmoreuUGg==/base.apk"],nativeLibraryDirectories=[/data/app/com.dr.hsh-glqdsOfLcRBaJwmoreuUGg==/lib/arm, /data/app/com.dr.hsh-glqdsOfLcRBaJwmoreuUGg==/base.apk!/lib/armeabi, /system/lib]]
  16.         at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134)
  17.         at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
  18.         at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
  19.         at io.rong.push.platform.vivo.VivoPush.register(VivoPush.java:20)
  20.         at io.rong.push.PushManager.register(PushManager.java:151)
  21.         at io.rong.push.PushManager$1.onGetPushType(PushManager.java:110)
  22.         at io.rong.push.pushconfig.PushConfigManager$3$1.onSuccess(PushConfigManager.java:163)
  23.         at io.rong.push.core.PushClient.handleMessage(PushClient.java:190)
  24.         at io.rong.push.core.PushClient.access$300(PushClient.java:17)
  25.         at io.rong.push.core.PushClient$PushReader.run(PushClient.java:223)
复制代码



注意!!! 相关参数,都已经在对应的平台申请好了

1条回复

技术咨询-F 管理员 27696Y币
thirdpartPush  这个模块加了吗?
在文档上下载,上传自定义模块,添加上。
您需要登录后才可以回帖 登录

本版积分规则