Android Studio布局设计视图未加载 [英] Android studio layout Design view not loading

查看:197
本文介绍了Android Studio布局设计视图未加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Android Studio 3.2.1版本.正在加载.xml layout.attached屏幕截图.

I'm using Android Studio 3.2.1 version. The loading .xml layout.attached screenshot.

Android Studio .xml屏幕截图:

Android Studio .xml screenshot:

Android Studio等待屏幕截图:

Android Studio waiting screenshot:

推荐答案

几个月前,我遇到了同样的问题,尽管在更新Android Studio之后,我没有遇到任何类似的问题.因此,这是我用来解决此问题的最佳方法.

I faced the same problem few months back though after updating my Android Studio I didn't get any problem like this. So the best way I Used to solve this problem.

转到根目录,依次转到"res">"values">"styles.xml" ,然后在前面添加"Base".在paretn内>"Theme.AppCompat.Light.DarkActionBar"

Go to the root directory go to "res" > "values" > "styles.xml" and there add the "Base." in front of "Theme.AppCompat.Light.DarkActionBar" inside paretn

<style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">

我希望这可以解决您的问题. :)

I hope this will solve your problem. :)

这篇关于Android Studio布局设计视图未加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆