QuickBlox 致命错误
QuickBlox Fatal error
Android 工作室:3.0
Error:../../webrtc/api/android/jni/classreferenceholder.cc 中的致命错误,第 119 行最后一个系统错误:88
# 检查失败:!jni->ExceptionCheck()
# FindClass 期间出错: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>
您应该搜索旧的 jni-libs in releases for your version, there is zip-archive 与您需要的版本,只需将其解压缩并用此存档中的库替换您的库。
Android 工作室:3.0
Error:../../webrtc/api/android/jni/classreferenceholder.cc 中的致命错误,第 119 行最后一个系统错误:88 # 检查失败:!jni->ExceptionCheck() # FindClass 期间出错: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>
您应该搜索旧的 jni-libs in releases for your version, there is zip-archive 与您需要的版本,只需将其解压缩并用此存档中的库替换您的库。