I am making an app in Android Studio, now trying to debug it through adb. When I click on the word Android and the logo on the bottom bar, logcat comes up and recognizes my
I solved this issue after doing the following steps:
Go to Tools==>android==>Disable ADB integration and enable it again.
After that, unplug USB from device and plug in again.
Finally press shift + F9
<application android:debuggable="true">
</application>
This no longer works! No need to use debuggable="true" in manifest.
Instead, you should set the Build Variants to "debug"
In Android Studio, go to BUILD -> Select Build Variant
Now try debugging. Thanks
One case where you can be unable to debug an application in Android Studio is when you have the "release" build variant selected. Happened to me - Gradle builds a release version of the app (which is not debuggable) and then Android Studio fails at trying to connect the debugger.
This worked for me:
Open the shell, and write:
adb kill-server
adb start-server
For me, it happened when I used Proguard, so by trying all the solutions I cleaned my project and pressed the debug button on Android Studio and it started debugging
If your Application used to be debuggable, and suddenly it's no more debuggable.Here is my solution
USB debug
switch in your phone.