React-native run-android react-native react native. Js file noot found when i run the app. 5 months ago 4 Views. Android emulator react native. How to install react native setup? Having trouble in installing Android Studio SDK files are missing.
I try to run react-native app on genymotion android emulator on my mac. When I write react-native run-android It gets Running /usr/local/opt/android-sdk/platform-tools/adb reverse tcp:8081 tcp:8081 error: closed Could not run adb reverse: Command failed: /usr/local/opt/android-sdk/platform-tools/adb reverse tcp:8081 tcp:8081 Building and installing the app on the device (cd android &&./gradlew installDebug. Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have set up your Android development environment: MacBook-Pro-MacBook:ART-CarefulPeople macbook$ Then I've tried:. react-native start.
react-native run-android The same result. Then I've tried:. react-native bundle -entry-file index.android.js -platform android -bundle-output android/app/src/main/assets/index.android.bundle. curl '-o 'android/app/src/main/assets/index.android.bundle'.
react-native run-android The same result. I've tried just adb reverse tcp:8081 tcp:8081 and it says error: closed When I try to run app on android-sdk emulator it gets the same error above but without error: closed.
From android studio I can run this app and it works on genymotion. Tell me please what should I do to run my app on android emulator? It happened to me that I had an instance of the packager running with an old project (I ran react-native start as usual). I was using Ubuntu 14.04.
![Missing Missing](/uploads/1/2/5/4/125464725/699196367.png)
So what I did was to stop that instance and go to my project folder and in two different console tabs I ran these two commands separately: npm start #here I used to run react-native start react-native run-android npm start is defined in my package.json as: 'start': 'nodemodules/react-native/packager/packager.sh' I don't know if there is a sort of confusing stuff for react-native but that did the trick.