Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ASK about FBSDKPackage #14816

Closed
pisangGoreng opened this issue Jul 4, 2017 · 2 comments
Closed

ASK about FBSDKPackage #14816

pisangGoreng opened this issue Jul 4, 2017 · 2 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@pisangGoreng
Copy link

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

@asgvard
Copy link

asgvard commented 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".

@hramos hramos closed this as completed Jul 5, 2017
@lwiecek
Copy link

lwiecek commented Jun 11, 2018

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 facebook locked as resolved and limited conversation to collaborators Jul 5, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

5 participants