react-native icon indicating copy to clipboard operation
react-native copied to clipboard

the development server returned response error code :404

Open allenymt opened this issue 10 years ago • 19 comments

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

allenymt avatar Apr 28 '16 12:04 allenymt

@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 avatar Apr 28 '16 12:04 grabbou

@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

allenymt avatar Apr 28 '16 13:04 allenymt

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

grabbou avatar Apr 28 '16 13:04 grabbou

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

allenymt avatar Apr 29 '16 02:04 allenymt

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

allenymt avatar Apr 29 '16 03:04 allenymt

@allenyulun Turn on the WIFI.

deju avatar Jul 14 '16 06:07 deju

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

ShayanAhmad avatar Sep 14 '16 19:09 ShayanAhmad

i have same problem please give me solution

omhybrid avatar Nov 10 '16 12:11 omhybrid

react-native start

khawajah avatar Nov 24 '16 18:11 khawajah

Maybe you could use npm instand of cnpm.

a1exlism avatar Mar 07 '17 13:03 a1exlism

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

Stupidism avatar Mar 08 '17 02:03 Stupidism

who can tell me how to solve?

guozhiyuanasd avatar Mar 08 '17 10:03 guozhiyuanasd

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

Stupidism avatar Mar 10 '17 10:03 Stupidism

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.

ericvicenti avatar Mar 30 '17 22:03 ericvicenti

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

thiswhy avatar May 15 '18 12:05 thiswhy

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

rochapablo avatar May 15 '18 18:05 rochapablo

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?

Taym95 avatar May 16 '18 10:05 Taym95

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 avatar May 16 '18 10:05 rochapablo

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

jeffzing avatar May 17 '18 02:05 jeffzing