Stuck at whitescreen when starting app with debugger - Android Studio 4.1.2

779 Views Asked by At

when I start my android application on a physical device with 'Debug App' runs into a whitescreen and does not proceed.

If I do the same without debugger and attaching it afterwards it works fine.

What I tried:

  • disable "allow paralell run"
  • clean application and delete .gradle folder
  • restart adb
  • restart device
  • restart android studio

Another thread suggests to disable instant run but I did not found that on Android Studio 4.1.2.

Do you have any suggestions?

3

There are 3 best solutions below

0
Tommehh On BEST ANSWER

I tried everything you guys suggested, but only a clean reinstall worked

0
Tamtomo Abdi Negoro On

please try this :

  • disable Verify apps over USB on your android physical device developer option
  • Ensure select debug app is not pointing to any app on the device
  • ensure USB Debugging (Security settings) is turned off
  • Disable any antivirus app you may have on the android physical device
  • Perform file --> Invalidate Caches on your android studio
  • Do a rebuild

then try debugging again..

0
Dusan.czh On

I had a different issue, by default (at least in my Android Studio) I had method breakpoints turned on. This was causing my old Android device to stutter and just show blank screen. Everything started working much smoother after I removed them. You can find how to do it here : IntelliJ Debugger slow: Method breakpoints may dramatically slow down debugging