Reputation: 175
I am currently working on a project and everything was fine. Today, while I opened android studio, the design/layout preview showing white screen only. (Like the picture)
I did try:
But, nothing worked. No Build errors, runs fine in emulator and design shows in emulator, but not in android studio.
Any solution would be a great help, also let me know if you need more details.
Even a new project with Hello World layout appears same. Tried, uninstalling and installing Android Studio.
Upvotes: 2
Views: 19065
Reputation: 49
I just created a new Project and copied all the code based into the new project and then it was working fine.
Upvotes: -1
Reputation: 71
If you have tried all the solution and still problem is not solved the try doing this- just disable the toggle icon (top right icon) in xml as your layout would be visible in only night mode. enter image description here
Upvotes: 0
Reputation: 183
Try these, they are worked for me :
1.Rebuild project Buil > Rebuild project
Invalidate and caches
Gradale synch Setting>Synch project with gradle files
Upvotes: 0
Reputation: 840
Chenge the theme in the design screen,and you can see your perview.
Upvotes: 8
Reputation: 1704
I was also facing same issue resolved following this steps: https://www.youtube.com/watch?v=hMbIUVogWTo
In short answer is change appcompact-v7 "beta01" to "alpha1"
Upvotes: 0
Reputation: 175
I don't know what was wrong, but below steps solved my problem:
After hours of experimenting and going through lots of solutions, this was the one that actually worked.
Hope anyone in the future faces this problem will find this helpful.
Upvotes: 7