You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, im have some trouble about react-native. when im run react-native run-android. its show error about: error: constructor FBSDKPackage in class FBSDKPackage cannot be applied to given types; new FBSDKPackage(), ^ required: CallbackManager found: no arguments reason: actual and formal argument lists differ in length 1 error :app:compileDebugJavaWithJavac FAILED
any suggest to solve this? thanks
The text was updated successfully, but these errors were encountered:
This issue is definitely related to "react-native-fbsdk" package and not to react-native itself. And it's documentation clearly says that you have to pass "mCallbackManager" into a FBSDKPackage constructor: Docs.
That's exactly what the error says, "required: CallbackManager, found: no arguments".
Take a look at getPackages function in MainApplication. Make sure that new FBSDKPackage() is not on the list before new FBSDKPackage(mCallbackManager). In my case I had it listed twice and that was breaking the build.
facebook
locked as resolved and limited conversation to collaborators
Jul 5, 2018
Hi, im have some trouble about react-native. when im run react-native run-android. its show error about:
error: constructor FBSDKPackage in class FBSDKPackage cannot be applied to given types; new FBSDKPackage(), ^ required: CallbackManager found: no arguments reason: actual and formal argument lists differ in length 1 error :app:compileDebugJavaWithJavac FAILED
any suggest to solve this? thanks
The text was updated successfully, but these errors were encountered: