Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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 this issue Nov 23, 2017 · 7 comments

Comments

@hexi
Copy link

hexi commented Nov 23, 2017

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 hexi changed the title after upgrade AndroidStudio3 + gradle3.0.0 throw java.lang.UnsupportedOperationException: Can't convert to dimension: type=0x12 after upgrade AndroidStudio3 + gradle3.0.0 + android 6.0 device then throw java.lang.UnsupportedOperationException: Can't convert to dimension: type=0x12 Nov 23, 2017
@lmh301
Copy link

lmh301 commented Dec 2, 2017

I have the same issue

@maxouille
Copy link

Same here !

@eurycea
Copy link

eurycea commented Jan 29, 2018

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
Copy link

yuxh3 commented Apr 2, 2018

i have same issue ,How to solve it?

@zhuangdaoyuan
Copy link

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

@haomini
Copy link

haomini commented May 22, 2018

still crash at here! @zhuangdaoyuan

@haomini
Copy link

haomini commented May 22, 2018

image
It looks like it has been fixed

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants