astuetz / PagerSlidingTabStrip

An interactive indicator to navigate between the different pages of a ViewPager
139 stars 44 forks source link

after upgrade AndroidStudio3 + gradle3.0.0 + android 6.0 device then throw java.lang.UnsupportedOperationException: Can't convert to dimension: type=0x12 #317

Open hexi opened 6 years ago

hexi commented 6 years ago

Caused by: java.lang.UnsupportedOperationException: Can't convert to dimension: type=0x12 at android.content.res.TypedArray.getDimensionPixelSize(TypedArray.java:666) at com.astuetz.PagerSlidingTabStrip.(PagerSlidingTabStrip.java:148) at com.astuetz.PagerSlidingTabStrip.(PagerSlidingTabStrip.java:106) at java.lang.reflect.Constructor.newInstance(Native Method)  at android.view.LayoutInflater.createView(LayoutInflater.java:619)  at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:764)  at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)  at android.view.LayoutInflater.rInflate(LayoutInflater.java:835)  at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798)  at android.view.LayoutInflater.inflate(LayoutInflater.java:515)  at android.view.LayoutInflater.inflate(LayoutInflater.java:423)  at android.view.LayoutInflater.inflate(LayoutInflater.java:374)  at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:284)  at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:140)  at com.futures.appframework.BaseActivity.setContentView(BaseActivity.java:92)  at com.baidao.futures.module.message.MessageActivity.onCreate(MessageActivity.java:70) 

lmh301 commented 6 years ago

I have the same issue

maxouille commented 6 years ago

Same here !

eurycea commented 6 years ago

I encountered this and migrated to TabLayout https://developer.android.com/reference/android/support/design/widget/TabLayout.html

For me it was as simple as changing the class and #setViewPager to #setupWithViewPager.

yuxh3 commented 6 years ago

i have same issue ,How to solve it?

zhuangdaoyuan commented 6 years ago

image I don't know why it must crash at here

haomini commented 6 years ago

still crash at here! @zhuangdaoyuan

haomini commented 6 years ago

image It looks like it has been fixed