android接入腾讯音视频sdk按照官方文档做登录时报错
No virtual method initSDK(Landroid/content/Context;ILcom/tencent/imsdk/v2/V2
腾讯官方文档是加入以下依赖,调用mLiveRoom.login时候报错
implementation 'com.tencent.liteav:LiteAVSDK_TRTC:9.5.11201'
implementation ('com.tencent.imsdk:latest.release')
应该是依赖版本问题,将imsdk依赖改为imsdk-plus即可解决
implementation 'com.tencent.liteav:LiteAVSDK_TRTC:9.5.11201'
implementation ('com.tencent.imsdk:imsdk-plus:5.8.1672')