ASK about FBSDKPackage #14816
Copy link
Copy link
Closed
Labels
Resolution: LockedThis issue was locked by the bot.This issue was locked by the bot.
Description
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
Metadata
Metadata
Assignees
Labels
Resolution: LockedThis issue was locked by the bot.This issue was locked by the bot.
Activity
asgvard commentedon Jul 5, 2017
Hi,
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".
lwiecek commentedon Jun 11, 2018
Take a look at
getPackagesfunction inMainApplication. Make sure thatnew FBSDKPackage()is not on the list beforenew FBSDKPackage(mCallbackManager). In my case I had it listed twice and that was breaking the build.