nagarro-dv/react-native-zoom-us-bridge

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

dheerendra9414 opened this issue · 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

Did you update your zoom android sdk recently?

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

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

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.

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