expo-cli icon indicating copy to clipboard operation
expo-cli copied to clipboard

Bundled adb incompatible with m1

Open brentvatne opened this issue 3 years ago • 5 comments

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:

brentvatne avatar Jun 23 '21 03:06 brentvatne

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)
»

thgh avatar Nov 29 '21 14:11 thgh

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

karlhorky avatar Apr 12 '22 08:04 karlhorky

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.

github-actions[bot] avatar Jul 11 '22 12:07 github-actions[bot]

@brentvatne do you know if this issue is still valid?

karlhorky avatar Jul 11 '22 12:07 karlhorky

@karlhorky - we no longer bundle adb in the local cli: https://blog.expo.dev/the-new-expo-cli-f4250d8e3421

brentvatne avatar Aug 15 '22 19:08 brentvatne