React-native: the development server returned response error code :404

Created on 28 Apr 2016  ·  19Comments  ·  Source: facebook/react-native

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

Locked

Most helpful comment

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

All 19 comments

@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.

@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

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

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

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

@allenyulun Turn on the WIFI.

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

i have same problem please give me solution

react-native start

Maybe you could use npm instand of cnpm.

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

who can tell me how to solve?

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

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.

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上出现问题了。一定要帮帮我解决一下这个问题。谢谢你~

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

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?

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.

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

Was this page helpful?
0 / 5 - 0 ratings