Android: How to track down the origin of a InflateException?

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>

Leave a Comment