In your android project folder, where gradlew is located. Execute gradlew --stopDo one of either:
- 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.
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.
Restart your phone.
Uninstall your apk and reinstall it fresh again.