Unable to run react native app on Andriod emulator using expo

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

Andriod emulator react native app development
Android emulator

Leave a Reply

Your email address will not be published. Required fields are marked *

Enable Notifications OK No thanks