java.lang2.NoClassDefFoundError: Failed resolution of: Landroid/support/v7/widget/TintManager;
在使用design中tablayout时,报了如下异常:
java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v7/widget/TintManager;
at android.support.design.widget.TabLayout$TabView.
at android.support.design.widget.TabLayout.createTabView(TabLayout.java:656)
at android.support.design.widget.TabLayout.addTabView(TabLayout.java:695)
at android.support.design.widget.TabLayout.addTab(TabLayout.java:386)
at android.support.design.widget.TabLayout.addTab(TabLayout.java:361)
at android.support.design.widget.TabLayout.setTabsFromPagerAdapter(TabLayout.java:645)
at android.support.design.widget.TabLayout.setupWithViewPager(TabLayout.java:616)
at
解决方法是: 在gradle中将disign中的版本改为 23.2.1即可
compile 'com.android.support:design:23.1.1'
【java.lang2.NoClassDefFoundError: Failed resolution of: Landroid/support/v7/widget/TintManager;
】