Android Studio 3.0 xml-layout file's preview not showing

后端 未结 8 1460
夕颜
夕颜 2020-12-20 11:56

When I open layout file in my new Android-Studio file and press preview tab it\'ll show a message Waiting for build to finish... for infinite time.

<
8条回答
  •  遥遥无期
    2020-12-20 12:05

    try different theme (may be from Appcompat) and API level from top

    OR

    1. If you have made some changes in the layout just undo it.
    2. delete .idea and .gradle folder from root of the project
    3. close android studio , restart it
    4. click on gradle icon from right sidebar and click sync icon to refresh project. now rebuild the project and it should work.

提交回复
热议问题