kvadityaaz
kvadityaaz

Reputation: 1491

'React native run android' stops just after start the app in emulator

I am trying to run react-native run-android but in 1st project, it is working perfectly, but in other it automatically stops after starting intent. I have also tried adb reverse tcp:8081 tcp:8081 but its not working for my project named, "basicredux" I have attached the screenshot , hope it will help you to help me to solve this problem.

I have also tried the solution in 'React native run android' stop immediatelly after start the app in emulator But it is not working. in my first project which i created about 1 month ago, it is working perfectly, but not with any of my new projects. Sorry for not disclosing my first project name.

Working perfectly on my this 1 month old project :

Working perfectly on my this 1 month old project

Not working on this project or any new Projects:

Not working on this project or any new Projects

Attaching the Log Cat :

Log Cat

Upvotes: 0

Views: 1789

Answers (1)

kvadityaaz
kvadityaaz

Reputation: 1491

I found that after running react-native start along with react-native run-android in same project directory, the 'react-native run-android' stops but on editing the App.js file I can see the changes, only by clicking the reload button from the emulator screen or, ctrl + M then reload

Solution

Run react-native start in one terminal then react-native run-android in another tab of the terminal then ctrl + M then reload in emulator devices, or shake and reload in real devices.

screenshot

Upvotes: 3

Related Questions