简体   繁体   English

预览版没有在android studio 3.2版中显示

[英]Preview is not showing in android studio version 3.2

I am getting this error messages after i update the studio and modify the design gradle version 28.0.0. 我更新工作室并修改设计gradle版本28.0.0后收到此错误消息。

I don't know what is wrong. 我不知道出了什么问题。 在此输入图像描述

Help will be appreciated. 帮助将不胜感激。 Thanks 谢谢

This is a issue that occurs time to time. 这是一个不时发生的问题。 Here's how you fix it:- 这是你如何解决它: -

  1. Clean Project (Build->Clean Project) 清洁项目(建设 - >清洁项目)
  2. Invalidate and restart (File-> Invalidate Caches / Restart) 无效并重新启动(文件 - >无效缓存/重新启动)
  3. After restarting sync the project manually by clicking on the sync button 通过单击同步按钮手动重新启动项目后 左起第三个按钮

Third button from the left 左起第三个按钮

First of all check your XML is there any error resolve that. 首先检查你的XML是否有任何错误解决。

then 然后

1.Build-> Clean Project. 1.Build-> Clean Project。 2.Build-> Rebuild Project. 2.Build-> Rebuild Project。 3. After that go to file menu -> Invalidate Caches/Restart. 3.之后转到文件菜单 - >使高速缓存/重新启动无效。 4. File -> Sync Project with Gradle files. 4.文件 - >使用Gradle文件同步项目。

Resolve the errors then try: 解决错误然后尝试:

  • Build-Rebuild Project 建造 - 重建项目
  • Build-Clean Project 建设清洁项目
  • File-Sync Project with Gradle files (sync over the internet). 带有Gradle文件的文件同步项目(通过互联网同步)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM