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.MySecActivityxmlns: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 "