I had this issue with Android Studio 4.0. I used android studio 4.0 for a couple of days without problems. Seemingly out of nowhere the designer view stopped working.
I could only fix this by uninstalling android studio and installing the newest android studio version.