QuickBlox致命错误

时间:2017-11-30 12:39:34

标签: android quickblox

Android Studio:3.0

错误:../../webrtc/api/android/jni/classreferenceholder.cc中的致命错误,第119行最后一次系统错误:88                                                          #检查失败:!jni-> ExceptionCheck()                                                          FindClass期间的#error:org / webrtc / Camera1Enumerator

Gradle

 compile 'com.quickblox:quickblox-android-sdk-videochat-webrtc:2.6.1'

代码:

 QBRTCSurfaceView surfaceViewLocal = (QBRTCSurfaceView) findViewById(R.id.local_video_view);

XML

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">

<com.quickblox.videochat.webrtc.view.QBRTCSurfaceView
    android:id="@+id/remote_video_view"
    android:layout_width="match_parent"
    android:layout_height="match_parent"/>

<com.quickblox.videochat.webrtc.view.QBRTCSurfaceView
    android:id="@+id/local_video_view"
    android:layout_width="100dp"
    android:layout_height="100dp"
    android:layout_alignParentRight="true"/>
</RelativeLayout>

enter image description here

1 个答案:

答案 0 :(得分:1)

你应该为你的版本搜索旧的jni-libs in releases there is zip-archive,只需要解压缩版本,然后用你的libs替换你的libs。