AgoraIO / API-Examples

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

Issue with Agora ScreenSharing Android #357

Open softsan opened 1 year ago

softsan commented 1 year 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
CookieCzy commented 2 months ago

It is possible that the screen share library is not loaded, please refer to the following link (https://docs.agora.io/en/video-calling/core-functionality/screen-sharing?platform=android#manual-integration) Integrate screen share library