React-Native: Application has not been registered error

后端 未结 23 2208
無奈伤痛
無奈伤痛 2020-12-22 18:55

I am currently going through the React-Native tutorials. I began with the Getting Started tutorial, where I made a new react native project and successfully managed to run t

23条回答
  •  余生分开走
    2020-12-22 19:21

    I figured out where the problem was in my case (Windows 10 OS), but It might also help in Linux as well( You might try).

    In windows power shell, when you want to run an app(first time after pc boot) by executing the following command,

    react-native run-android
    

    It starts a node process/JS server in another console panel, and you don't encounter this error. But, when you want to run another app, you must need to close that already running JS server console panel. And then execute the same command for another app from the power shell, that command will automatically start another new JS server for this app, and you won't encounter this error.

    You don't need to close and reopen power shell for running another app, you need to close node console to run another app.

提交回复
热议问题