android-menudrawer icon indicating copy to clipboard operation
android-menudrawer copied to clipboard

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

Open asshyy-ktz opened this issue 7 years ago • 7 comments

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

asshyy-ktz avatar Feb 10 '18 15:02 asshyy-ktz

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

tylerwilson avatar Feb 17 '18 00:02 tylerwilson

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

jinjin-lee avatar Jun 01 '18 17:06 jinjin-lee

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

LouisLeung avatar Jan 26 '19 05:01 LouisLeung

@jinjin-lee Have you got any solution?

pchauhan avatar Apr 19 '19 12:04 pchauhan

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

kkrzyzek avatar Jun 26 '19 21:06 kkrzyzek

it is 2020. same problem!!

gturedi avatar Jan 04 '20 21:01 gturedi

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

jxian725 avatar Nov 25 '20 07:11 jxian725