react-native: The development server returned response error code:404
Is this a bug report?
(Yes)
Have you read the Contributing Guidelines?
(Yes)
Environment
Steps to Reproduce
(Write your steps here:)
- Run the command react-native run-android in the terminal.
- Shows the result BUILD SUCCESSFUL.
- Last line before exist was: Starting: Intent { cmp=com.projectfirst/.MainActivity }.
Expected Behavior
(Should have seen the result for the project rather than this error.)
Actual Behavior
(There was no code change but emulation didn’t happen.)
–>
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 9
- Comments: 20
I see the same red screen. Is some new update the cause of this error? In the terminal i get
::ffff:127.0.0.1 - - [15/May/2018:12:50:43 +0000] "GET /index.android.delta?platform=android&dev=true&minify=false HTTP/1.1" 404 79 "-" "okhttp/3.6.0"
Did you solve this?
we met this issue too. Yesterday the project run successfully. but today can not run . Pls help!! thanks.
I found a solution, that helped me https://stackoverflow.com/questions/50344830/react-native-cannot-read-index-android-delta
@Mislavoo7 check this to solve https://github.com/callstack/haul/issues/334, but now another issue appear.
@maximten ,thanks, it worked for me. https://stackoverflow.com/questions/50344830/react-native-cannot-read-index-android-delta
I had same error. In my case I did: run in cmd :
react-native start
if it’s complain that can’t listen on some port (in my case it was 8081), kill all processes on this port: on linux:fuser -k 8081/tcp
then runreact-native start
Have the same problem too
Thank you all for the help! I added
compile ("com.facebook.react:react-native:0.55.4") { force = true }
to app app/build.gradle and I had to update react-native:yarn add react-native
Now I get a new error from RNFS that is probably not properly linked but that’s another story 😃
Seems like something changed on FB’s side.
I changed the following to make my project work again. This forces the correct version:
to
It looks like the problem is faced by lot of now from yesterday onwards. I can see this error says server is trying to connect to 10.0.2.2:8081 Not sure why server is trying to connect to this address instead of localhost.
I have same problem