【问题标题】:Not getting preview layout in android studio 3.0在 android studio 3.0 中没有获得预览布局
【发布时间】:2018-12-23 23:27:45
【问题描述】:

在我的 android studio 3.0 中没有获得预览布局。我附上了它的截图,大箭头显示没有预览

【问题讨论】:

标签: android android-layout android-studio android-gradle-plugin build.gradle


【解决方案1】:

请浏览一下

1- Go to your res folder and inside res folder.
    2-Go to values.
    3-Go to style.xml
    4-change  <!-- Base application theme. -->
        <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
    to <style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">

【讨论】:

    【解决方案2】:

    你有三个解决方案 1:清理项目并重建它。

    2:如果您使用目标 sdk 28,请将其设置为 27,并将实施更改为 27 并同步您的项目

    3:关闭您的项目并重新导入它

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-12-03
      • 1970-01-01
      • 2018-04-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多