今天下载安装了Android Studio 3.0,使用时发现Preview出错,不能显示布局,问题如下图所示:查找翻阅解决方案如下:首先在value文件夹下找到styles.xml文件,找到如下一行,
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
然后在Theme前加“Base.”
<!-- Base application theme. -->
<style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">
之后在Preview即可看到布局。
相关文章:
-
2021-09-30
-
2021-06-29
-
2021-10-03
-
2021-04-29
-
2022-12-23
-
2021-12-24
-
2021-07-19
猜你喜欢
-
2021-10-13
-
2021-05-29
-
2021-05-09
-
2021-11-29
-
2021-05-24
相关资源
-
下载
2021-06-06
-
下载
2021-06-05
-
下载
2023-03-07