PagerSlidingTabStrip icon indicating copy to clipboard operation
PagerSlidingTabStrip copied to clipboard

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

Open hexi opened this issue 8 years ago • 7 comments

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) 

hexi avatar Nov 23 '17 06:11 hexi

I have the same issue

lmh301 avatar Dec 02 '17 15:12 lmh301

Same here !

maxouille avatar Dec 10 '17 14:12 maxouille

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.

eurycea avatar Jan 29 '18 22:01 eurycea

i have same issue ,How to solve it?

yuxh3 avatar Apr 02 '18 14:04 yuxh3

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

zhuangdaoyuan avatar May 18 '18 06:05 zhuangdaoyuan

still crash at here! @zhuangdaoyuan

haomini avatar May 22 '18 10:05 haomini

image It looks like it has been fixed

haomini avatar May 22 '18 11:05 haomini