Android studio 3.1 XML preview not showing for some XML layouts

后端 未结 15 868
时光取名叫无心
时光取名叫无心 2020-12-08 02:54

Some layouts are shown, some just have blank, gray frame. I can\'t seem to find a correlation between XML layouts that work and those that do not, there is a mixture of use

15条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-08 03:40

    I've tried pretty much everything from above and nothing worked for me. Then I've downgraded my compileSdkVersion and targetSdkVersion

    compileSdkVersion 27
    targetSdkVersion 27
    

    It worked! I've changed the versions back to 28 and it is still working.

提交回复
热议问题