I\'ve been getting InflateException/ClassNotFoundException error intermittently. I\'ve seen similar errors before in SO but they were caused by spelling errors. I spelled \'
The error during inflation might come from drawable used in the ImageView, in this case:
android:background="@drawable/timeline_image_border"
android:src="@drawable/timeline_image_dummy"
To get rid of it, replace all the existing images trying a different drawable.
Don't name XML file and image file the same name like this:
It's an old question but I just came across the same problem. In my case it was caused by using the android:tint
attribute with an selector
rather than a color
:
<ImageView
...
android:tint="@drawable/some_selector" />
While this works without a problem a SDK 21+ it crashes in older versions...
Switching to AppCompatImageView
and to app:tint
solved the problem:
<android.support.v7.widget.AppCompatImageView
...
app:tint="@drawable/some_selector" />
For me , i copy my image to Folder drawable-v24
and compiler didnt find it
Change view of Android studio to project view
and cut and paste your image to folder drawable
For me the problem was that the svg-file was to big.