Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

java.lang.UnsupportedOperationException: Can't convert to dimension: type=0x1c #270

Open
asshyy-ktz opened this issue Feb 10, 2018 · 7 comments

Comments

@asshyy-ktz
Copy link

giving UnsupportedOperationException with explanation Can't convert to dimension: type=0x1c on object initialization.

@tylerwilson
Copy link

Add this line to your gradle.properties:

android.enableAapt2=false

and that will make it work. See here https://issuetracker.google.com/u/0/issues/65189965?pli=1

@jinjin-lee
Copy link

I tried add above line to my gradle.properties.
But it make issue yet when i launch application.
My project is kotlin.

@LouisLeung
Copy link

same problem
java.lang.UnsupportedOperationException: Can't convert value at index 2 to dimension: type=0x3

@pchauhan
Copy link

@jinjin-lee Have you got any solution?

@kkrzyzek
Copy link

@pchauhan @jinjin-lee Hey guys, Facing same issue. Have you found any solution or identified cause of it?

@gturedi
Copy link

gturedi commented Jan 4, 2020

it is 2020. same problem!!

@jxian725
Copy link

jxian725 commented Nov 25, 2020

I have do some research about it.
The problem is caused by having gradle version of 3.0.0+, the problem was with the in MenuDrawer.attach(Activity activity, Type type, Position position, int dragMode).

The simplest way to solve it was to downgrade the grade plugin and gradle version.
Currently my project is working fine even with AndroidX:

  • gradle version 2.3.3
  • gradle plugin 4.6

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

No branches or pull requests

8 participants