The development server returned response error code: 500 in react native

前端 未结 16 1221
夕颜
夕颜 2021-02-05 01:29

I am using react-native framework for developing my android app. I want to use react-native-material-design library for making Toolbar wit

16条回答
  •  情书的邮戳
    2021-02-05 02:03

    I had the same issue with port 8081, change it to 8082. because its already being used by some other service here is step its work for me

    First run your package server: Blockquote

    react-native start --port 8082
    

    Open another command prompt, start the Android app as usual:

    react-native run-android
    

    Once it finishes, now rewrite the tcp port that adb tunnels:

    adb reverse tcp:8081 tcp:8082
    

    See the list of adb tcp tunnels:

    adb reverse --list
    

    Now You should now see a message like:

    (reverse) tcp:8081 tcp:8082
    

    check your app it will run ...........!

提交回复
热议问题