
When I try to open the expo android react native app using expo on an android emulator getting the below error message
Opening on Androidโฆ
could not install *smartsocket* listener: Address already in use
ADB server didn't ACK
* failed to start daemon *
error: cannot connect to daemon
Error: adb exited with non-zero code: 255
at ChildProcess.completionListener (/usr/local/lib/node_modules/expo-cli/node_modules/@expo/spawn-async/src/spawnAsync.ts:65:13)
at Object.onceWrapper (node:events:642:26)
at ChildProcess.emit (node:events:527:28)
at maybeClose (node:internal/child_process:1092:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
...
at spawnAsync (/usr/local/lib/node_modules/expo-cli/node_modules/@expo/spawn-async/src/spawnAsync.ts:26:19)
at adbAlreadyRunning (/usr/local/lib/node_modules/expo-cli/node_modules/xdl/src/Android.ts:277:26)
at getAdbOutputAsync (/usr/local/lib/node_modules/expo-cli/node_modules/xdl/src/Android.ts:295:34)
at getAttachedDevicesAsync (/usr/local/lib/node_modules/expo-cli/node_modules/xdl/src/Android.ts:206:18)
at startAdbReverseAsync (/usr/local/lib/node_modules/expo-cli/node_modules/xdl/src/Android.ts:1052:19)
at Object.openProjectAsync (/usr/local/lib/node_modules/expo-cli/node_modules/xdl/src/Android.ts:922:3)
at handleKeypressAsync (/usr/local/lib/node_modules/expo-cli/src/commands/start/TerminalUI.ts:305:27)
at ReadStream.handleKeypress (/usr/local/lib/node_modules/expo-cli/src/commands/start/TerminalUI.ts:269:7)Solution:
To my surprise, it’s a normal expo couldn’t for the first time and then it ends the npm start app just restart the app
Hit again the npm start you should be able to open the app on android emulator
โบ Metro waiting on exp://10.0.0.167:19000
โบ Scan the QR code above with Expo Go (Android) or the Camera app (iOS)
โบ Press a โ open Android
โบ Press i โ open iOS simulator
โบ Press w โ open web
โบ Press r โ reload app
โบ Press m โ toggle menu
โบ Press ? โ show all commands
Logs for your project will appear below. Press Ctrl+C to exit.
Started Metro Bundler
โบ Opening on Android...
Couldn't adb reverse: device 'adb' not found
โบ Opening exp://10.0.0.167:19000 on
โบ Press ? โ show all commands
Android Bundling complete 5950ms
Android Running app on sdk_gphone64_arm64
Binary Cipher