【问题标题】:Cannot resolve symbol'@style/AppTheme.AppBarOverlay'无法解析符号'@style/AppTheme.AppBarOverlay'
【发布时间】:2020-04-08 05:23:40
【问题描述】:
<com.google.android.material.appbar.AppBarLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:theme="@style/AppTheme.AppBarOverlay">

    <androidx.appcompat.widget.Toolbar
        android:id="@+id/toolbar"
        android:layout_width="match_parent"
        android:layout_height="?attr/actionBarSize"
        android:background="?attr/colorPrimary"
        app:popupTheme="@style/AppTheme.PopupOverlay" />

</com.google.android.material.appbar.AppBarLayout>

android:theme="@style/AppTheme.AppBarOverlay" & app:popupTheme="@style/AppTheme.PopupOverlay",他们有同样的错误。

【问题讨论】:

    标签: xml android-studio


    【解决方案1】:

    通过尝试通过 Invavidate Caches/Restart 修复,编译、重新打开和重新索引项目时可能出现问题

    File -> Invalidate Caches/Restart.
    
    

    请看看这是否对你有帮助...

    【讨论】:

      猜你喜欢
      • 2018-12-03
      • 1970-01-01
      • 2022-09-29
      • 2018-11-11
      • 1970-01-01
      • 1970-01-01
      • 2021-02-04
      相关资源
      最近更新 更多