SimonVT / android-menudrawer

*DEPRECATED* A slide-out menu implementation, which allows users to navigate between views in your app.
http://simonvt.github.com/android-menudrawer/
Apache License 2.0
2.59k stars 1.11k forks source link

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

Open asshyy-ktz opened 6 years ago

asshyy-ktz commented 6 years ago

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

tylerwilson commented 6 years ago

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 commented 6 years ago

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

LouisLeung commented 5 years ago

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

pchauhan commented 5 years ago

@jinjin-lee Have you got any solution?

kkrzyzek commented 5 years ago

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

gturedi commented 4 years ago

it is 2020. same problem!!

jxian725 commented 3 years ago

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: