react-native-zoom-us-bridge icon indicating copy to clipboard operation
react-native-zoom-us-bridge copied to clipboard

error: method initialize in class ZoomSDK cannot be applied to given types; zoomSDK.initialize(reactContext.getCurrentActivity(), appKey, appSecret, RNZoomUsBridgeModule.this);

Open dheerendra9414 opened this issue 3 years ago • 7 comments

error with latest zoom sdk

error: method initialize in class ZoomSDK cannot be applied to given types; zoomSDK.initialize(reactContext.getCurrentActivity(), appKey, appSecret, RNZoomUsBridgeModule.this);

how to resolve it

dheerendra9414 avatar Jan 19 '22 13:01 dheerendra9414

Did you update your zoom android sdk recently?

harshalijain avatar Mar 14 '22 07:03 harshalijain

no

dheerendra9414 avatar Mar 14 '22 11:03 dheerendra9414

I'm having the same error. Please suggest any solution if anyone has resolved the same.

Softkeydel avatar Mar 22 '22 11:03 Softkeydel

@harshalijain Could you please tell me the version which is not having this issue?

Softkeydel avatar Mar 22 '22 11:03 Softkeydel

I had to manually update the file - RNZoomUsBridgeModule.java

ZoomSDKInitParams params = new ZoomSDKInitParams();
                    params.appKey = appKey;
                    params.appSecret = appSecret;
                    zoomSDK.initialize(reactContext.getCurrentActivity(), RNZoomUsBridgeModule.this,params);

This happened after I update the core zoom sdk library (i.e. updated mobilertc.aar and commonlib.aar) since old sdk was not supported anymore.

harshalijain avatar Mar 22 '22 11:03 harshalijain

@dheerendra9414 As you said "error with latest zoom sdk" , you might have to manually update RNZoomUsBridgeModule.java as mentioned in my comment

harshalijain avatar Mar 22 '22 11:03 harshalijain

@harshalijain thanks

Softkeydel avatar Mar 22 '22 11:03 Softkeydel