Cannot run app in debug mode from Android Studio

I finally solved the problem. my phone setting should set on MTP mode and nothing else. debugger connects to my phone after this change.


I had same issue and fixed now. Here is what i did which might help u

  1. Confirm the exact problem, Is it that debugger is not able to connect or breakpoints not hit. TO confirm this put breakpoint in MainActivity. Also application would be waiting for debugger, just check if it stopped waiting or any console logs. Also just check if debugger shows pause button

  2. Check ur gradle config and make sure apk has symbols. (Debug release)

In my case issue was 1st and got it resolved. Hope this might help else pls ignore