❯ expo diagnostics
Expo CLI 3.22.3 environment info:
System:
OS: Linux 5.4 Manjaro Linux
Shell: 5.8 - /usr/bin/zsh
Binaries:
Node: 14.6.0 - ~/.nvm/versions/node/v14.6.0/bin/node
Yarn: 1.22.4 - ~/.yarn/bin/yarn
npm: 6.14.6 - ~/.nvm/versions/node/v14.6.0/bin/npm
IDEs:
Android Studio: 4.0 AI-193.6911.18.40.6626763
npmPackages:
expo: ~38.0.8 => 38.0.8
react: ~16.11.0 => 16.11.0
react-dom: ~16.11.0 => 16.11.0
react-native: https://github.com/expo/react-native/archive/sdk-38.0.2.tar.gz => 0.62.2
react-native-web: ~0.11.7 => 0.11.7
npmGlobalPackages:
expo-cli: 3.22.3
Hi,
I successfully got React Native (aka eject mode) working without issue. It works fine with Android Emulators and my Android phone too. And now I was hoping to use Expo but, I’m having trouble getting it to work. No matter what I do, I can’t seem to get it to run on the emulator without it always giving me an error of some sort.
With a fresh copy of Node installed via nvm, I run npm install -g expo-cli
. That’s fine. Then I login, also fine. Then I expo init my-app
and chose blank template, which seems fine too. I cd into my-app and run yarn start
. It brings up Metro in the browser, seems fine as well.
With a brand new emulator setup, I Run on Andorid device/emulator
I get the following error: Couldn't start project on Android: Error running adb: cmd: Can't find service: package
and the popup says Error opening Simulator - I think it may be because the emulator wasn’t already running.
I run the emulator again and this time the popup is green and I get a success message but, I get the following error:
The View error log:
So I refresh…and I get the spinner for a bit. Then I get Building JavaScript bundle: finished in 18015ms.
At which point I get the following error:
Reload does nothing so, I dismiss and I get this:
So I Run on Andorid device/emulator again and get the following two screens:
So I reload…
At which point I get the previous error:
And then the the whole thing starts over so, I turn off the Emulator and Metro and try to yarn start again but, that doesn’t help and it’s the stuck on “JavaScript 100%” screen again. So I close Expo and my-app on the emulator (square icon and swiping them up) but, I get the same Expo SDK error again.
I did see some posts on the Expo SDK error but, I haven’t been able to address it with any of the suggestions.
Any help would be greatly appreciated, thanks!
Update: seems to work fine on my physical device, just not the emulator.