---
# System prepended metadata

title: Error inflating class com.google.android.material.tabs.TabLayout
tags: [系統環境]

---

Error inflating class com.google.android.material.tabs.TabLayout
===

My sol:
Check your `/res/values/styles.xml` and set your theme to

```xml=
<style name="dialogTheme" parent="android:Theme.Holo.Light.Dialog">
    ．．．
</style>
<!-- 改成如下 -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar" />
```

## Ref.
[Error inflating class com.google.android.material.appbar.AppBarLayout](https://stackoverflow.com/questions/52688994/error-inflating-class-com-google-android-material-appbar-appbarlayout)

###### tags: `系統環境`