BUILD SUCCESSFUL
Total time: 2 mins 6.65 secs Running C:\Users\arnold\AppData\Local\Android\sdk;/platform-tools/adb -s 192.168.95.101:5555 reverse tcp:8081 tcp:8081 Could not run adb reverse: spawnSync C:\Users\arnold\AppData\Local\Android\sdk;/platform-tools/adb ENOENT Starting the app on 192.168.95.101:5555 (C:\Users\arnold\AppData\Local\Android\sdk;/platform-tools/adb -s 192.168.95.101:5555 shell am start -n com.testproject/com.testproject.MainActivity)...
The build successful but it's not shown in GenyMotion emulator.
i running on Android 5.0.0 (API 21)
Plug in your device via USB # Let's now set up an Android device to run our React Native projects. Go ahead and plug in your device via USB to your development machine. Now check that your device is properly connecting to ADB, the Android Debug Bridge, by running adb devices.
How to Solve Could not connect to development server Error in React Native : 1. This error occurs when we close the server command prompt window by mistake . The server command window should look like this : 2. So there is no need to close and recompile the whole project again.
React Native runs on backhand server which starts when we apply the react-native run-android or react-native run-ios command on our command prompt screen. This command start will build up our Gradle project and start synchronizing the whole package using JS server.
You can click the device option button, or if it doesn't exist for your device use adb shell input keyevent 82 command and select Dev Settings from menu, and then from the section DEBUGGING choose Debug server host & port for device and enter your PC's IP (you can find your IP from ipconfig command for Windows) for example 192.168.1.12:8081.
You can click the device option button, or if it doesn't exist for your device use adb shell input keyevent 82
command and select Dev Settings
from menu, and then from the section DEBUGGING
choose Debug server host & port for device
and enter your PC's IP (you can find your IP from ipconfig command for Windows) for example 192.168.1.12:8081
.
after that, you can reload your application from options menu or restart your application.
Please pay attention:
Running Metro Bundler on port 8081.
React-native option menu:
Node window and successful Bundle loading
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With