简体   繁体   English

Android Studio 未正确呈现预览

[英]Android Studio not rendering preview properly

I am working on an app in Android Studio.I created a new project and choose a blank activity to start with.I waited for android studio to do its job and after creating the project it gave me this .Now the problem here is the layout preview is greyed out and is not looking as it looks when the app is emulated in genymotion.我正在 Android Studio 中开发一个应用程序。我创建了一个新项目并选择一个空白活动开始。我等待 android studio 完成它的工作,在创建项目后它给了我这个。现在这里的问题是布局在 genymotion 中模拟应用程序时,预览显示为灰色,并且看起来并不像它看起来的那样。

What i have tried up till now到目前为止我所尝试的

1.Tried to clean and rebuild the project 1.尝试清理并重建项目

2.Tried to sync gradle files 2.尝试同步gradle文件

3.Tried to create a new project 3.尝试创建一个新项目

None of the above has helped.Any help is appreciated!以上都没有帮助。感谢任何帮助!

Adjust your API level in the preview window(it's the android symbol!) with that in the manifest!在预览窗口中调整您的 API 级别(它是 android 符号!)在清单中! (And let us know if it worked!) (让我们知道它是否有效!)

For more: Android Studio rendering problems更多: Android Studio 渲染问题

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

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