Android Debug Bridge(adb) issue

I am currently facing with adb(Android Debug bridge) problem and tried many ways to solve it, here is the error block I get every single time:

× Deploying app-debug.apk to Pixel_3a_API_34 - failed!
[capacitor] [error] Selected hardware device emulator-5554
[capacitor] Installing C:\Users\nozim\OneDriveРабочий стол\Practice\blogify-admin-mobile-version\android\app\build\outputs\apk\debug\app-debug.apk…
[capacitor] Starting application activity io.ionic.starter/io.ionic.starter.MainActivity…
[capacitor] ADBs is unresponsive after 5000ms, killing server and retrying…
[capacitor] Error: Command failed: C:\Users\nozim\AppData\Local\Android\Sdk\platform-tools\adb -s emulator-5554 shell am start -W -n io.ionic.starter/io.ionic.starter.MainActivity
[capacitor] adb.exe: device offline
[capacitor]
[capacitor] at ChildProcess.exithandler (node:child_process:422:12)
[capacitor] at ChildProcess.emit (node:events:517:28)
[capacitor] at maybeClose (node:internal/child_process:1098:16)
[capacitor] at ChildProcess._handle.onexit (node:internal/child_process:303:5)
[capacitor]
[ERROR] An error occurred while running subprocess capacitor.

    capacitor.cmd run android --no-sync --target Pixel_3a_API_34 exited with exit code 1.

adb.exe: device offline means the device/emulator is turned off (offline), try starting it up before running the app on it as it can timeout or fail to start

sorry, but this happens when I wanna run my project on a virtual device and the emulator automatically turns the device on, before running the app

try running again, the message clearly says it’s offline, so it either timed out or is in an invalid state

1 Like