Search code examples
androidquickblox

QuickBlox Fatal error


Android Studio : 3.0

Error : Fatal error in ../../webrtc/api/android/jni/classreferenceholder.cc, line 119 last system error: 88 # Check failed: !jni->ExceptionCheck() # error during FindClass: org/webrtc/Camera1Enumerator

Gradle

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

Code:

 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


Solution

  • you should search old jni-libs in releases for your version, there is zip-archive with needed for you version, just unarchive it and replace your libs with libs from this archive.