expo-cli
expo-cli copied to clipboard
Bundled adb incompatible with m1
If you try to run an Android project on an attached phone from m1 without SDK platform tools installed, so you use bundled adb, then:
› Opening on Android...
Couldn't start project on Android:
Installing sdk platform tools did not seem to help:
brew install android-platform-tools
I still get this:
» expo start --android
Starting project at /.../app
Developer tools running on http://localhost:19002
Starting Metro Bundler
Error
at Process.ChildProcess._handle.onexit (node:internal/child_process:282:19)
at onErrorNT (node:internal/child_process:477:16)
at processTicksAndRejections (node:internal/process/task_queues:83:21)
»
It's the same when I press a
after expo start:
» expo start
Starting project at /Users/thomas/healthblocks/template-app
Developer tools running on http://localhost:19002
Starting Metro Bundler
› ...snip...
Logs for your project will appear below. Press Ctrl+C to exit.
› Opening on Android...
Error
at Process.ChildProcess._handle.onexit (node:internal/child_process:282:19)
at onErrorNT (node:internal/child_process:477:16)
at processTicksAndRejections (node:internal/process/task_queues:83:21)
»
I was also getting these confusing "empty" child process onexit
error (albeit, trying to set up an Android Studio emulator on an M1 machine):
$ yarn start --android
...
Error
at Process.ChildProcess._handle.onexit (node:internal/child_process:282:19)
at onErrorNT (node:internal/child_process:477:16)
at processTicksAndRejections (node:internal/process/task_queues:83:21)
Really not sure what these are about, pretty bad error messaging here.
After trying a bunch of things unsuccessfully, carefully following the Android Studio Emulator guide in the Expo docs worked: https://docs.expo.dev/workflow/android-studio-emulator/
Update 1: The "empty" error above happened again, now debugging, apparently could be related to this:
https://github.com/expo/expo-cli/issues/4240
This issue is stale because it has been open for 60 days with no activity. If there is no activity in the next 7 days, the issue will be closed.
@brentvatne do you know if this issue is still valid?
@karlhorky - we no longer bundle adb in the local cli: https://blog.expo.dev/the-new-expo-cli-f4250d8e3421