Respond to native using Genymontion metadata

I have a basic response to my own application and try to run in Genymon. I'm currently getting an error

java.util.concurrent.ExecutionException: java.lang.RuntimeException:: ReferenceError: Can't find variable: require(http://10.0.3.2:8081/index.android.bundle?platform=android&dev-true 

I am working on a Mac with El capitan with all the configuration suggested by Facebook for android dep,

I am compiling:

 ../node_modules/react-native-cli/index.js run-android 

enter image description here

+5
source share
4 answers

I also see this problem. Tried react-native run-android

0
source

I sorted the problem. I thought the problem was Genymontion, but there seems to be a simple explanation for port forwarding for android before running the application for related applications.

 adb reverse tcp:8081 tcp:8081 
0
source

Go to Dev setup.

Go to the node and port of the debug server for the device.

Enter this IP address and port ==> 0.0.0.0:8081

Rebooting js.

0
source

I met the same problem, try removing "use strict"; in your javascript file this should be fine.

-2
source

Source: https://habr.com/ru/post/1245491/


All Articles