> "meteor run android" launches the application and launches the Android emulator, but I can not find or launch the application inside the emulator

To get started with Android development, I use the todos sample application from the percolation studio. From the Ubuntu 14.04 console running on VMWare Workstation 10, I can successfully launch the todos application

gbdmeteor@ubuntu :~/todophone/todos$ meteor run android Starting android emulator [[[[[ ~/todophone/todos ]]]]] => Started proxy. => Started MongoDB. => Started Cordova (android). => Started your app. => App running at: http://localhost:3000/ 

this launches the Android emulator, but I cannot find / launch the target application (todos) in the emulator. What am I missing?

+6
source share
2 answers
  • Using http://localhost:3000 does not work because localhost only means something in the context of the host OS. Open your Android browser and go to my main computer. IP address: 192.168.56.130:3000 Then a meteorite application appears, as in a browser.

  • If I close the meteor application (ctl-c from the command line) and leave the Android emulator, and then the meteor starts the android from the command line again ... The meteor successfully loads, installs the icon and starts the application!

Now I have to download the application in a real Android device and see if the camera works.

+4
source

This worked for me:

 $ export BIND_IP=[YOUR LOCAL IP, ie. 192.168.1.x] $ meteor run android 

If this is not already done, be sure to install API 22 in Android Studio in advance .

+1
source

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


All Articles