-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
更新到1.9.6后,初始化奔溃 #97
Comments
同上,解决了吗? |
在初始化前加ILiveSDK.getInstance().setChannelMode(CommonConstants.E_ChannelMode.E_ChannelIMSDK); |
这不是写在初始化之前嘛,咋还是报错啊,我好难啊! |
具体是什么错误?需要注意的是 ILVLiveConfig/ILVLiveManager这些类不是ilivesdk的接口,而是已经不再维护的livesdk的接口 |
java.lang.NoSuchMethodError: No virtual method getRoomMessageListener()Lcom/tencent/TIMMessageListener; in class Lcom/tencent/livesdk/ILVLiveConfig; or its super classes (declaration of 'com.tencent.livesdk.ILVLiveConfig' appears in /data/app/com.intexh.doctoronline-1/split_lib_dependencies_apk.apk) |
走到ILVLiveManager.getInstance().init(liveConfig);会进LiveMgr这个直播接口实现类的public int init(ILVLiveConfig config)方法,方法中的第一个判断就直接报错 if (config.getRoomMessageListener() == null) |
不要使用livesdk了,已经不再维护了,可以直接使用ilivesdk,用ILiveRoomManager |
好的我试试,有没有最新的demo啊 我看git上的demo是以前老版本的! |
如果不使用livesdk,则不能使用信令,ilivesdk里面有代替类嘛! |
ilivesdk可以用sendGroupMessage发送群组消息,信令可以自己封装 |
初始化代码如下:
// 初始化直播模块
ILVLiveConfig liveConfig = new ILVLiveConfig();
liveConfig.setLiveMsgListener(MessageEvent.getInstance());
ILVLiveManager.getInstance().init(liveConfig);//奔溃发生在该行
UncaughtException detected: java.lang.NoSuchMethodError: No virtual method getRoomMessageListener()Lcom/tencent/TIMMessageListener; in class Lcom/tencent/livesdk/ILVLiveConfig; or its super classes (declaration of 'com.tencent.livesdk.ILVLiveConfig' appears in /data/app/cn.edoctor.android.talkmed-2/base.apk:classes4.dex)
at com.tencent.livesdk.LiveMgr.init(LiveMgr.java:41)
The text was updated successfully, but these errors were encountered: