AgoraIO/video-sdk-samples-android

Issue with Agora ScreenShare on Android

Closed this issue · 1 comments

I am following this guidelines to use Screen sharing with my android project. but I am getting this runtime error while starting a screen sharing:

W/System.err: java.lang.NoSuchMethodError: no non-static method "Lio/agora/rtc2/extensions/MediaProjectionSource$ScreenCaptureParameters;.<init>(IIIZ)V"
E/rtc: #
    # Fatal error in: ../../../../../media_sdk_script/media_engine2/webrtc/sdk/android/src/jni/jni_generator_helper.cc, line 59
    # last system error: 2
    # Check failed: !env->ExceptionCheck()
    # error during GetMethodID: <init>, (IIIZ)V

The screen-sharing guide has been updated and the extension is added to the repository.