When I run my React Native app on my Android device, I get this error: I found this answer but it is not running for me: Answer. Further I'm using React Native on Ubuntu and React Native isn't create local.properties (sdk.dir=/path/to/sdk/) and I need to change buildToolsVersion "23.0.1" to "23.0.3". I want to auto make those.
In my case, I found out that it was failing because it couldn't find adb when building the app, so I solved it by adding the Android SDK Platform Tools folder to my PATH. Check that you have it! :) Show activity on this post. This link clearly explains how to run in device.
You have to enter some information about your development machine in the 'Dev Settings' of React Native. When you see the error, shake your device. A dialog will popup, the last option will be 'Dev Settings'. Select 'Debug server hot & port for device' and enter your local IP and the used port (usually 8081).
Batched bridge that which queues the native calls makes it difficult for the React Native apps to call functions that are implemented natively while a serializable bridge equates to unnecessary copying.
This getting started tutorial says:
A common issue is that the packager is not started automatically when you run
react-native run-android
. You can start it manually usingreact-native start
.
and it solved my same problem.
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