Android studio not rendering layout preview

后端 未结 8 998
Happy的楠姐
Happy的楠姐 2020-12-05 07:33

I\'ve been using Android Studio 0.8.6 to develop apps and am having problems with the layout preview when using API21. I get the following error:

Rend

8条回答
  •  孤城傲影
    2020-12-05 08:02

    1. Clean Project
    2. Rebuild project
    3. Sync Gradle
    4. Press update layout preview button

    The "Update layout preview" button is located above the android phone preview, it's the one with circular blue arrows, right by the magnifying glass zoom buttons.

    note: this solution appears to do nothing until the update layout button is pressed at the final step, and then it works. This fixed the problem for me. I am using Android Studio v2.1.2.

    Cheers!

提交回复
热议问题