Tablayout报错Error inflating class android.support.design.widget.TabLayout

LOG

log中给出的caused by:
Caused by: android.view.InflateException: Binary XML file line #119: Error inflating class android.support.design.widget.TabLayout
Caused by: java.lang.reflect.InvocationTargetException

解决方法:

需要将activity当前的theme继承Theme.AppCompat

你可能感兴趣的:(Tablayout报错Error inflating class android.support.design.widget.TabLayout)