API-Examples icon indicating copy to clipboard operation
API-Examples copied to clipboard

Issue with Agora ScreenSharing Android

Open softsan opened this issue 2 years ago • 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

softsan avatar Sep 19 '23 19:09 softsan

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

CookieCzy avatar Sep 18 '24 09:09 CookieCzy