android studio中的预览为空白,仅显示移动框架

时间:2018-08-03 11:06:01

标签: android android-studio preview

我尝试清理构建并重新启动android studio,但无法正常工作。任何解决方案请! 预览没有任何变化。

as the image shows that no change is observed in the picture

2 个答案:

答案 0 :(得分:0)

您可以通过单击预览屏幕右上角的红色错误符号来查看错误,并在此处共享错误消息。

只需尝试将Style.xml文件中的值从parent="Theme.AppCompat.Light.DarkActionBar"更改为parent="Base.Theme.AppCompat.Light.DarkActionBar"。看看它是否有效,或者分享您的错误。

谢谢

答案 1 :(得分:0)

将您的依赖项版本更改为alpha1

  

喜欢

implementation 'com.android.support:appcompat-v7:28.0.0-alpha1'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
implementation 'com.android.support:support-v4:28.0.0-alpha1'