5

After I started to use debugging with attaching debugger in Android Studio, I cannot install standalone package - it says "Waiting for debugger to attach" ! I cannot run program in another way, rather than from Android Studio itself! Same thing happens, if I press "Run" - than, even worse, it is waiting for debugger that is not even going to attach...

Note: I have also seen this question: How to stop debug without closing app in Android Studio 2 - However, in my case there is no stop button! I just disconnect

1
  • uninstall that apk manually from device and try installing it fresh.
    – karan
    Feb 8, 2019 at 11:15

1 Answer 1

4

Do one of either:

  1. You have either accidentally set a breakpoint by misclicking either Ctrl + F8 or simply left clicking the line-count. So look through your code for that.

    • Tip: If you are unsure about this, create a new project and install it, if it works, this is most likely the error you are facing.
  2. You have selected an app to be debugged. Go to your phone's settings -> Developer Options -> Select app to be debugged -> No apps. This will clear it.

  3. Restart your phone.

  4. Uninstall your apk and reinstall it fresh again.

4
  • Eh, this doesn't change anything.
    – Emil
    Feb 8, 2019 at 11:14
  • Ohhhh my apologies, are you running it on your mobile device? IF you are then go to your phone's settings -> Developer Options -> Select app to be debugged -> No apps
    – sansa
    Feb 8, 2019 at 11:15
  • Did this work? Also, if it's already "No apps" then just restart the device, also make sure you do not have any breakpoints in your code. If you are unsure of break points then just check if the problem is solved with a fresh new project. If it is, then you most likely have a breakpoint in your code and you acidentally either pressed ctrl+F8 or left clicked on the left side of your code where it says the line count.
    – sansa
    Feb 8, 2019 at 11:29
  • Thanks! Yes, that was debugging app in tablet settings. Stupid me, forgot about that :)
    – Emil
    Feb 8, 2019 at 11:31

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.