Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React Native 0.31: Could not get BatchedBridge Error

When I run my React Native app on my Android device, I get this error: Error Message 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.

like image 700
İbrahim Avatar asked Aug 14 '16 13:08

İbrahim


People also ask

Can't get batched bridge error react native?

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.

Could not get Batchedbridge make sure your bundle is packaged correctly in Expo?

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).

What batched bridge?

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.


1 Answers

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 using react-native start.

and it solved my same problem.

like image 111
Burak Avatar answered Oct 24 '22 16:10

Burak