AgoraIO / API-Examples

Play with AgoraSDK and have fun! Everything you need to start learning Agora.
294 stars 217 forks source link

Issue with Agora ScreenSharing Android #357

Open softsan opened 11 months ago

softsan commented 11 months ago

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