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

[android] RCTNetworking.sendRequest got 7 arguments, expected 6 #5658

Closed
TangSirOnGit opened this issue Feb 1, 2016 · 12 comments
Closed

[android] RCTNetworking.sendRequest got 7 arguments, expected 6 #5658

TangSirOnGit opened this issue Feb 1, 2016 · 12 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@TangSirOnGit
Copy link

device-2016-02-01-153614

I Got this error when practising
Integrating with Existing Apps
. Any ideas what it can be?

thanks a lot

@facebook-github-bot
Copy link
Contributor

Hey TangSirOnGit, thanks for reporting this issue!

React Native, as you've probably heard, is getting really popular and truth is we're getting a bit overwhelmed by the activity surrounding it. There are just too many issues for us to manage properly.

  • If you don't know how to do something or something is not working as you expect but not sure it's a bug, please ask on StackOverflow with the tag react-native or for more real time interactions, ask on Discord in the #react-native channel.
  • If this is a feature request or a bug that you would like to be fixed, please report it on Product Pains. It has a ranking feature that lets us focus on the most important issues the community is experiencing.
  • We welcome clear issues and PRs that are ready for in-depth discussion. Please provide screenshots where appropriate and always mention the version of React Native you're using. Thank you for your contributions!

@TangSirOnGit
Copy link
Author

fixed by changing react-native to 0.19.0

compile 'com.facebook.react:react-native:0.19.0'

@cubbuk
Copy link

cubbuk commented Feb 7, 2016

I got the same error, thanks @TangSirOnGit for the solution.

@awitherow
Copy link
Contributor

@TangSirOnGit how are you running this compile 'com.facebook.react:react-native:0.19.0'?

@cubbuk
Copy link

cubbuk commented Feb 8, 2016

@awitherow you need to update build.gradle file. That should reside under android/app/build directory. You need to change the dependencies section in that file for react-native line.

@danielweinmann
Copy link

Thanks, @TangSirOnGit :D

@alvaromb
Copy link
Contributor

I'm still getting this error, and I have

dependencies {
    compile fileTree(dir: "libs", include: ["*.jar"])
    compile "com.android.support:appcompat-v7:23.0.1"
    compile "com.facebook.react:react-native:0.19.+"
}

under build.gradle file.

@kapv89
Copy link
Contributor

kapv89 commented Feb 10, 2016

Facing the same problem. setting react-native version to 0.19.0 fixed the problem once, but enabling hot module replacement did it in again

@alvaromb
Copy link
Contributor

How do you disable hot module replacement, @kapv89 ?

@kapv89
Copy link
Contributor

kapv89 commented Feb 10, 2016

In the emulator, F2, clicked on the option @alvaromb

@awitherow
Copy link
Contributor

I was only getting this error when trying to use the react-native-webpack-server. Never had it without.

@alvaromb
Copy link
Contributor

Ok, I reinstalled dependencies and then I ran into this other issue: #5655 (comment)

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

8 participants