简体   繁体   English

我无法使用Android Studio预览某些布局

[英]I can't preview some layouts with Android Studio

I have some troubles with my Android Studio IDE, the problem is that I can't preview some of my layouts inside the design mode or the preview window. 我的Android Studio IDE遇到了一些麻烦,问题是我无法在设计模式或预览窗口内预览某些布局。 the strange thing is that there is no "API version Editor" in the list : 奇怪的是,列表中没有“ API版本编辑器”:

在此处输入图片说明

I tried Clean/build my project, Invalidate and restart the IDE but the problem stills there . 我尝试清理/构建项目,使Invalidate无效并重新启动IDE,但问题仍然存在。

Have you ever get this issus with Android Studio ? 您是否曾经通过Android Studio获得此功能? My Android Studio infos : 我的Android Studio信息:

在此处输入图片说明

Regards 问候

Just press "Sync Project with gradle" and voila! 只需按“与gradle同步项目”,瞧! your layout preview is right there... Sync icon is present in the toolbar 您的布局预览就在其中...工具栏中显示“同步”图标

与gradle同步项目

or Go to FILE Menu -> Sync Projects with Gradle files. 或转到文件菜单-> 用Gradle文件同步项目。

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

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