AddView Causes NullPointerException
Good day! I'm implementing aChartEngine to draw charts on Android and have faced with a trouble: I receive NullPointerException when try to add created chart view to layout with a
Solution 1:
The problem is in your xml file.
android:name="@+id/price_chart"
should be
android:id="@+id/price_chart"
Solution 2:
Make any change to your XML file and then save and run it again. Worked for me when I had a problem earlier tonight that was similar.
Post a Comment for "AddView Causes NullPointerException"