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).
Working solution
1.For testing run as debug if everything is correct process is attached and you can able to debug.Can see in the list
2.If it says application not debuggable then alter gradle
4 .If not toggle Tools->Android->Enable ADB Integration and make it enabled.
5.Restart adb server
6.Dis connect and connect device It will list
I used Mac to run Android Studio. I agree with @Kushal, I did not open Eclipse though.
I shut off Parallels Desktop and other APPs which may use the same Gradle.
Just click the "Bug" icon and you will be good to go.
I had the same problem and that did the trick. hope it helps someone.
You should check also in your AndroidManifest.xml file that there is no option like android:debuggable="false"
in your application tag.
<application
android:icon="@drawable/icon"
android:label="@string/app_name"
android:debuggable="false">
To make it work just remove this option.
Multiple Options to do this:
1.Tools->Android->Enable ADB Integration
OR
2.Build->Clean Project , the Build-> Rebuild Project. Then "adb kill-server" and "adb start-server"
One of above will work.
This is the problem I encountered.The AAR file you import may change the attribute of debuggable, So just remove the debuggable attribute in your Main App Manifest file. See the picture: