Ionic Capacitor 7 Android emulator debugging issues

I am building my app with Capacitor/Angular for Android 15 and debugging with the emulator seems to be a bit broken for me. It seems like after the application is installed the adb returns an error and the debug process just quits. Sometimes after 20 retries I get through and debugging is like you would expect.

The command i run:
“ionic capacitor run android --external --livereload --configuration development”

That results in:

My ADB version
1.0.41

I have tried many things to resolve this:

  • Reinstalling android toolkits
  • Using other emulators and Android versions
  • Reinstalling adb
  • Reinstalling Ionic and Capacitor
  • Running the default starter app

It is strange because the emulator is just sitting there and launching the app but every time it just quits with the same error. When I run it on my physical development phone it just works. I don’t have access to that phone all the time so i need to use the emulator.

Does anybody have the same problem or maybe a possible solution?

Check emulator settings. Wipe emulator data. Try different emulator images. Explicitly kill/start ADB. Verify ADB devices. Clean and rebuild your app. Check Capacitor config. Disable firewall/antivirus temporarily. Look for conflicting processes. The intermittent success suggests a timing issue.

1 Like

I’ve also run into similar issues recently with the emulator hanging or crashing right after install, especially on newer Android versions. Wiping the emulator data helped once, but the problem came back later. I’m starting to think it might be a timing issue like you said, maybe related to how ADB handles installs when livereload is running.