Since I’ve installed a newer version of android studio i.e. Android Studio Flamingo | 2022.2.1
my application always waits for a debugger when executing debugging from android studio.
I have tried a lower version of the Android Studio on the same PC and emulator and it works flawlessly (using the same version of adb.exe and etc.) So I cannot imagine what I’ve missed in the new version of android studio to make it work with an emulator while debugging.
I should mention that I’ve browsed different solutions covered in the Stackoverflow but nothing worked such as invalidate cache + enable/disable develoer options.
I’m suspect to gradle + Android studio combination.
The android studio stops adb session and prompts: ‘process xxx.yyy.zzz not found. aborting session’.
I also added android:debuggable="true"
in my manifest to allow debugger attach my application but it does not help.
I should add that my app have build flavors and I don’t know does it might affect the debugger?
I have no firewall enabled on my PC and no process listens to port 8600.
Version of my tools:
ADB
Android Debug Bridge version 1.0.41
Version 30.0.5-6877874
Android Studio Flamingo | 2022.2.1
Gradle: 7.5.1
2
Answers
adb
server may need to be killed first so that next time you run the debugger it can attach to the process correctly. Run this (on macOS):and then try to run the debugger again
Try uninstalling Android Studio Flamingo | 2022.2.1 and reinstalling an earlier version that you know works well with your setup.