标签:
1.由于adapter的getview方法返回为空导致的报错信息
java.lang.NullPointerException: Attempt to invoke virtual method ‘void android.view.View.setDrawingCacheBackgroundColor(int)‘ on a null object reference
at android.widget.AbsListView.obtainView(AbsListView.java:2360)
at android.widget.ListView.makeAndAddView(ListView.java:1864)
at android.widget.ListView.fillDown(ListView.java:698)
at android.widget.ListView.fillFromTop(ListView.java:759)
at android.widget.ListView.layoutChildren(ListView.java:1659)
at android.widget.AbsListView.onLayout(AbsListView.java:2151)
at android.view.View.layout(View.java:15671)
at android.view.ViewGroup.layout(ViewGroup.java:5038)
2. 由于Manifest文件中多了个<Meta-data>标签,但是其中又没有name和value属性,导致R文件找不到
标签:
原文地址:http://www.cnblogs.com/shinhwa/p/5788825.html