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

the development server returned response error code :404 #7274

Closed
allenymt opened this issue Apr 28, 2016 · 19 comments
Closed

the development server returned response error code :404 #7274

allenymt opened this issue Apr 28, 2016 · 19 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@allenymt
Copy link

when I run:./gradlew :Examples:Movies:android:app:installDebug
image
the AwesonmeProject is my first react-native module

@grabbou
Copy link
Contributor

grabbou commented Apr 28, 2016

@facebook-github-bot stackoverflow

PS. Please make sure you have the packager started & running in the correct folder, looks like you are trying to run a project whereas the packager runs in the folder of the previous one.

@allenymt
Copy link
Author

@grabbou Thanks, yeah ,I forget to close the previous one, Then I restart it ,but error like this
image
I can't connect to development server

@grabbou
Copy link
Contributor

grabbou commented Apr 28, 2016

Have you tried following the steps in error box? Isn't that changing anything?

@allenymt
Copy link
Author

@grabbou yeah ,I tried,but it's no use

@allenymt
Copy link
Author

@grabbou i forget the last :./packager/packager.sh ...

@deju
Copy link

deju commented Jul 14, 2016

@allenyulun Turn on the WIFI.

@ShayanAhmad
Copy link

quit the "react-native run-android", then do "adb reverse tcp:8081 tcp:8081" and then do the "react-native run-android" and the code shall work on "Reload JS".

@omhybrid
Copy link

i have same problem please give me solution

@khawajah
Copy link

react-native start

@a1exlism
Copy link

a1exlism commented Mar 7, 2017

Maybe you could use npm instand of cnpm.

@Stupidism
Copy link

@a1exlism Have you met the same problem and solved by this way?

@guozhiyuanasd
Copy link

who can tell me how to solve?

@Stupidism
Copy link

I found several problems related with this error, and here are my solutions to solve this problem:

  1. use react-native start doc
    image
  2. use npm instead of cnpm

@ericvicenti
Copy link
Contributor

The movies sample has been removed from the core RN repo. Feel free to publish standalone example apps, and we can curate a list of them for the website.

@thiswhy
Copy link

thiswhy commented May 15, 2018

I have the same problem.The code can worked in IOS ,but can not be worked in android .If you have solue this problem ,tell me ,thanks~

我有同样的问题。本来运行好好的项目突然出现这个问题,我原本以为是代码的原因,但是我从git拉下来可以运行的代码也出现了这个问题。是不是我的Android环境在mac上出现问题了。一定要帮帮我解决一下这个问题。谢谢你~

@rochapablo
Copy link

This worked for me (still not happy)

    compile ('com.facebook.react:react-native:0.48.4') { force = true }

Where 0.48.4 is your current version

@Taym95
Copy link
Contributor

Taym95 commented May 16, 2018

This should work!
compile ('com.facebook.react:react-native:YOUR_REACT_NATIVE_VERSION') { force = true }
instead of
compile "com.facebook.react:react-native:+"
But why?

@rochapablo
Copy link

Indeed! Why!?

Last Friday it was working all good and yesterday I just start the project without changes and I got that error.

So, if you guys know why this start please, let me know.

@jeffzing
Copy link

@rochapablo apparently, your android react-native version ahead of your react-native version,use react-native:+ is not preciseness

@facebook facebook locked as resolved and limited conversation to collaborators Jul 19, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 19, 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