Skip to content Skip to sidebar Skip to footer

Occasional Binary XML File Line #XX: Error Inflating Class

I have a main activity, that holds the main menu. This menu has an option to start a second activity, which is a SurfaceView descendent. I'm getting this error several times, but

Solution 1:

You need to have the <?xml .. ?> prelude as well as set your xml namespace. Are you doing this?

<?xml version="1.0" encoding="utf-8"?>
<com.myapp.MySecActivity
    xmlns:android="http://schemas.android.com/apk/res/android"
    ...

If com.myapp.MySecActivity is not your root element, then try pasting your entire layout if you'd us to look at it.


Post a Comment for "Occasional Binary XML File Line #XX: Error Inflating Class "