简体   繁体   English

xml 预览在 android 工作室中不起作用

[英]xml preview is not working in android studio

在此处输入图像描述

In Android Studio Dolphin |在 Android Studio Dolphin | 2021.3.1 Patch 1,xml preview is not working on particular layouts.Is there any solution to solve this problem? 2021.3.1 Patch 1,xml 预览版在特定布局上不工作。有解决这个问题的方法吗? Please help me to solve the problem.请帮我解决这个问题。

fellow coder.码友。

In the latest update of Android Studio ie Dolphin |在最新更新的Android Studio ie Dolphin | 2021.3.1, there are many unresolved bugs so don't worry. 2021.3.1,还有很多未解决的bug,不用担心。

  • Try Invalidate and Restart option尝试无效并重新启动选项
  • After restarting if it still shows the some error, check whether you have used any third party library's tag into that xml file.重启后如果还是报some error,请检查你是否在那个xml文件中使用了第三方库的tag。

Because I also faced the same issue and later on found out that it was occurring due to that third party lib's tag.因为我也遇到了同样的问题,后来发现它是由于第三方库的标签而发生的。 If present, try to comment that particular code and check whether the preview appears or not.如果存在,请尝试注释该特定代码并检查预览是否出现。

Add your xml file code for better understanding and it might help to resolve your errors.添加您的 xml 文件代码以便更好地理解,它可能有助于解决您的错误。

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

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