I tried to debug a release version of my Android application but Android Studio failed to attach a debugger. (It could not find Android procces of my running application).
It happen to me when I wanted to debug my app after I Generated a Sign APK, so I had to change back the Build Variants value from release to debug.
I want to add one point to above 2 answers :
If Eclipse IDE
is running parallel to Android Studio
then above answers may not help you. The debuggable application will not refresh event after setting debuggable true
in Gradle file.
So, close Eclipse IDE and check in Android Studio. The debuggable application will refresh.
Thank you
Ctrl+shift+A Type Enable ADB Integration click on toggle Done
if intellij or AS you should make sure your Build Variants Setting is debug.