布局preVIEW Android Studio中不工作 [英] Layout preview not working in Android Studio
问题描述
我移植从Eclipse中到Android Studio中的Android项目。该项目建立就好了。但是我无法看到任何布局preVIEW。当我去到布局的设计标签,我收到了
I ported an android project from Eclipse to Android Studio. The project builds just fine. However I am not able to see any layout preview. When I go to the Design tab of a layout I get a
加载配置...
消息,永远不会消失(见图片)。
message that never goes away (see image).
结果我在项目结构正确地设置了Android SDK。
这种情况与所有的XML文件,我无法从
I have set correctly the Android SDK in the project structure.
This happens with all the xml files and I am not able to open the "Preview" window from
查看 - >工具窗口 - > preVIEW
View -> Tool Windows -> Preview
我试图创建一个新的项目,一切都显示正常。我缺少的东西吗?任何人都面临着类似的问题?是否有一个机会,这是发生,因为该文件夹结构不是默认的? (布局不是在项目/ src目录/主/ RES /布局,但在项目/ RES /布局)
I tried creating a new project and everything was showing fine. Am I missing something? Anyone faced a similar issue? Is there a chance that this is happening because the folder structure is not the default one? (The layouts are not under project/src/main/res/layout but under project/res/layout)
推荐答案
试试这个
- 生成>清理项目
- 构建>重建项目
这为我工作
这篇关于布局preVIEW Android Studio中不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!