Binary Xml File Line #17: Error Inflating Class Caused By Unsupportedoperationexception: Can't Convert To Dimension: Type=0x2
Solution 1:
error in xml check that you are in line 17 of your submission.
android:attr/textAppearanceListItemSmall
if the error here is api level change in the manifest
Solution 2:
The innermost exception means that one of your textviews have invalid dimensions declared. Check the SDK level you are using, because android:attr/listPreferredItemHeightSmall
and android:attr/textAppearanceListItemSmall
are available from API level 14 and up.
(added from my comment which fixed the issue)
Solution 3:
I found the same error on the same line, and it took two days to identify what the error was.
The error was simply because I was trying to use one: android:background
Rather than: app:srcCompat
in an SVG file.
In your case,
<ImageView android:id="@+id/icon"
android:layout_width="25dp"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginLeft="12dp"
android:layout_marginRight="12dp"
android:src="@drawable/menu_tip" <-- the error is here
android:layout_centerVertical="true"/>
the error also appears if you are using: android:src=" "
I hope this helps.
Post a Comment for "Binary Xml File Line #17: Error Inflating Class Caused By Unsupportedoperationexception: Can't Convert To Dimension: Type=0x2"