SINCH setSupportManagedPush(true) is not working

a 夏天 提交于 2019-12-25 15:59:09

问题


I have been using SINCH SDK's VOICE Calling feature for my project and it was working fine before until I update my google play service dependency.

I update it from 'com.google.android.gms:play-services-gcm:10.0.1' to 'com.google.android.gms:play-services-gcm:10.2.6' and it has started giving me error. If I use the older version then it is working fine.

But I have to update it to make it compatible with latest firebase dependencies of version 10.2.6

Here is my crash report.

05-25 14:21:44.379 6239-6239/? E/AndroidRuntime: FATAL EXCEPTION: main
                                             Process: com.someapp.app, PID: 6239
                                             java.lang.LinkageError: com.sinch.android.rtc.internal.client.gcm.InstanceIDTokenService
                                                 at dalvik.system.DexFile.defineClassNative(Native Method)
                                                 at dalvik.system.DexFile.defineClass(DexFile.java:226)
                                                 at dalvik.system.DexFile.loadClassBinaryName(DexFile.java:219)
                                                 at dalvik.system.DexPathList.findClass(DexPathList.java:338)
                                                 at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:54)
                                                 at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
                                                 at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
                                                 at com.sinch.android.rtc.internal.client.gcm.TokenRefreshTask.start(Unknown Source)
                                                 at com.sinch.android.rtc.internal.client.DefaultSinchClient.setSupportManagedPush(Unknown Source)
                                                 at com.someapp.app.sinch.SinchService.createClient(SinchService.java:109)
                                                 at com.someapp.app.sinch.SinchService.onStartCommand(SinchService.java:567)
                                                 at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3017)
                                                 at android.app.ActivityThread.access$2200(ActivityThread.java:153)
                                                 at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1449)
                                                 at android.os.Handler.dispatchMessage(Handler.java:102)
                                                 at android.os.Looper.loop(Looper.java:148)
                                                 at android.app.ActivityThread.main(ActivityThread.java:5438)
                                                 at java.lang.reflect.Method.invoke(Native Method)
                                                 at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:738)
                                                 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:628)

Can Anyone help?


回答1:


There is a new version (3.11.1) of the Sinch SDK released in June with a fix on this problem. You can try and see if it works now.



来源:https://stackoverflow.com/questions/44176864/sinch-setsupportmanagedpushtrue-is-not-working

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!