问题描述
java.lang.ExceptionInInitializerError at com.easemob.a.a.(Unknown Source) at com.easemob.a.a.a(Unknown Source) at com.easemob.chat.EMVideoCallHelper.setSurfaceView(Unknown Source) at com.xhbok.xyx.family.chat.ui.VideoCallActivity.onCreate(VideoCallActivity.java:131) at android.app.Activity.performCreate(Activity.java:5086) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079) at com.lbe.security.service.core.client.b.x.callActivityOnCreate(Unknown Source) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2056) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2117) at android.app.ActivityThread.access$600(ActivityThread.java:140) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1213) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:4914) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:808) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:575) at dalvik.**.NativeStart.main(Native Method) Caused by: java.lang.UnsatisfiedLinkError: Couldn't load easemob_base: findLibrary returned null
解决方案
找不到库文件,.so文件不全
解决方案二:
如果你直接用的是环信demo源码直接引用,并且即时聊天其他模块都正常只有语音、视频聊天以及视频选择点击没有反应的话,很有可能是你的AndroidManifest.xml中相关的服务前缀包名你没有替换为你自己的包名,也就是替换com.hyphenate.chatuidemo这个包名,还有布局文件xml中的有些自定义控件的前缀包名你也要替换为你自己的包名,你不替换的话AS运行也不会报错提示的,所以你可以Find in path 全局搜索下"com.hyphenate.chatuidemo"然后替换下。