Skip to content Skip to sidebar Skip to footer

Android Linearlayout Null Exception

I created a id in XML for my LinearLayout but getting null pointer exception. I didn't understand what went as i not receiving any syntax error. Here is my java code private OnClic

Solution 1:

Obvious NullPointerException. Please check if your activity_credit_score_from.xml actually contains a layout with that id. If everything's correct, clean your project (Project => Clean). Eclipse is a terrible IDE and loves suffering developers.

Solution 2:

there is no @id in the activity_credit_score_from.xml

this is what i created in my IDs.xml

<?xml version="1.0" encoding="utf-8"?><resources><itemname="newBtnLayoutList"type="id"/><itemname="newEntriesBtn"type="id"/></resources>

Post a Comment for "Android Linearlayout Null Exception"