Android: How to track down the origin of a InflateException?
Solution 1:
I had the same exact error. The only xml line 24 that made any sense was my application manifest which happened to be the closing tag for application. I traced it down to my custom theme I was adding for the app -- I was not defining the parent of the style. All I needed to do was add parent="android:Theme" to my style and my error went away.
<style name="MyTheme" parent="android:Theme">
...
</style>
Solution 2:
I had the same issue, and it was because I passed the application context instead of the activity context.