Android Studio Layout preview not showing design

前端 未结 4 990
悲哀的现实
悲哀的现实 2021-01-17 01:38

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)

相关标签:
4条回答
  • 2021-01-17 01:55

    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"

    0 讨论(0)
  • 2021-01-17 01:57

    Chenge the theme in the design screen,and you can see your perview.

    0 讨论(0)
  • 2021-01-17 02:04

    Based on the screen shot it looks like the RelativeLayout you are using can't find the resource images like 'adminIcon'. If you click on that red badge of the icon it should have a text message behind it.

    Did the artwork name of the images change? Do you see them in your res/drawable folder?

    0 讨论(0)
  • 2021-01-17 02:05

    I don't know what was wrong, but below steps solved my problem:

    1. Clear caches folder from C:/Users//.grade/caches
    2. Clear caches folder from C:/Users//.AndroidStuido3.x/system/caches
    3. Restart Android Studio
    4. Clean build project

    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.

    0 讨论(0)
提交回复
热议问题