Resources/xml files cause Java.Lang.NullPointerException RRS feed

  • Question

  • User28108 posted

    The presence of any xml file in Resources/xml causes the following error when calling SetContentView on my MainView (using mvvmcross) even though this view has no relation to the xml, actually the xml isn't used in my application at all yet. The name of the file or the contents doesn't seem to matter. If there is a file in Resources/xml then the exception occurs.

    Unhandled Exception: Java.Lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v7.widget.ContentFrameLayout.setId(int)' on a null object reference

    I need a file in Resources/xml so I can use the android PreferenceScreen

    Tuesday, July 19, 2016 11:24 PM

All replies

  • User169159 posted

    Same thing. Cleaning bin and obj folders should help.

    Monday, August 27, 2018 1:06 PM