I have my emulated android device running, its visible in “adb devices” and in expo I hit “open on android device” and the reactive native package manager in says “Opening on Android device” then nothing happens… and the emulator just stays there on the home screen / nothing installed.
Any idea whats going on or how to debug it as I see no logs anywhere? It works when I share to my actual phone.
Its the visual studio android emulator as I 100% have to run hyper-v given my work environment. Hyper-v means genymotion and the google android emulators are not viable as they require VirtualBox and are incompatible with hyper-v, so there is absolutely no way I can use them / this VS emulator is my only option.
The VS emulator didnt work at first, but adding the android studio adb version to path and a windows reg key to it seems to have worked, i.e. I can open a console and type adb devices and the virtual device is listed ok.
Expo seems to talk to the virtual device, if I open a 4.4 android and open on android device I get loads of error text in in the expo react native consol saying cant adb reverse which I later found out is supported in android 5.0.0 + devices.
So with an android 6 device that isnt an issue / expo seems to be using the same adb / is talking to the virtual device. Just nothing happens.
Whats frustrating is I can see no log out put, no time out, or error saying cant deploy etc I have nowhere to start to try and make this work. From what I read, people have made this work with the VS android emulator so its possible.
Any help would be most most appreciated, started a new job and this is making everything slow. Other team members have macs and everything just seems to work easily.
Sorry you’re running into trouble. So here’s the command it’s running behind the scenes when it claims to be opening the project. Maybe try running that manually and see what happens?
If you need to access your project manually, you can open the Expo app on your emulator, then paste in the URL shown for your project.
@jesse do you have any advice about this particular emulator setup? I’m not familiar. Seems difficult to debug if there aren’t any logs.
Thanks for the help, sorry been caught up with work / been meaning to reply.
I couldn’t get it working in the end. There were a few weird things I found, primarily hyper-v doesnt create an external network interface for the phone VM, if you go into the hyper-v manager and set it up whilst making sure its listed after its internal network adapter (because the order you specify devices is important?!) then expo half works.
Half works as in it starts expo app on the emulator and then hangs / fails. At that point I suspected the compatibility problem goes past just getting adb to work / the right path.
So I made the switch to linux, after an inotify issue and adb path, it (seemingly) works fine Also, means there is no hyper-v requirement and I can just use virtual box / the standard android emulator which just works.
I’ve also run into this issue as well. Networks on my emulator are setup correctly and do work fine from Android Studio, however when I send the command to run on the emulator from my react native project the expo client is loaded onto the emulator, the console prints out running android… but nothing happens. If I try to launch expo on the emulator to just type in the url it opens and crashes right away.
I experienced similar symptoms. One day Expo was loading my app just fine, the next day it was not. Once I got stuck in this state, I could reproduce the issue even with a brand new app. I ran these commands:
expo init myapp
(created a blank app)
The Android app would launch in the simulator with a blank white screen. Expo’s CLI output said “Opening on Android device”, but nothing printed beyond that. I tried saving an arbitrary text change to the App.js file, and saw no console output – no indication that even the watcher loop was online.
I then tried running “expo build:android”, and saw this error:
Must specify a java package in order to build this experience for Android. Please specify one in app.json at “expo.android.package”
So I filled in this section in my app.json:
Next, I ran “yarn start”, and still the app was not loading. Same symptoms.
I’m facing the exact same problem.
But some new infos.
I did this test in Windows 10, and it worked, but in my Ubuntu 18.04. did not. Same behavior (run on web browser worked, when try to load in a device or in emulator), and writes opening and nothing more happens.
Any clue to help?
BTW, I already try different initial apps (expo init blank, create-react-native-app), same behavior. not working at Ubuntu, but worked in Windows 10.
Still an ongoing problem for me as well.
Try to upgrade or reinstall expo on emulator.
I faced the same problem running
expo start and then a to open android emulator.
So I tried to run it with
expo start --android and it showed me this message:
Expo client on (emulator) is outdated, would you like to upgrade? (Y/n)
Accepting the upgrade fixed the problem and now it is running properly again.
My android simulator wasn’t updated, thx.
Thank You so much
정말 많은 도움이 되었습니다.
Fixed: Just changed the connection from “Lan” to “tunnel” and worked!
Great, it’s working for me