在Logcat中可以查看errer、warning等信息:
一般错误到 以自己写的包的包名开头的提示里找。
1、Null Pointer Execption :
如果某个对象没有初始化就调用它的方法,会产生空指针异常( 写Login时的错误 )。
-----------------------------------------------------------------------------------------------
2012-03-26
2、 res下的文件命名时,只能为a-z0-9_ 不能有大写字母!!!(写ImageButtonTest,为其设置style时,xml文件出现了大写!!)
-----------------------------------------------------------------------------------------------
2012-04-04
3、在strings.xml文件中,定义string时:
<string name="no_music_added">you haven't add music here!</string>
报错:error: Apostrophe not preceded by \
解决方法:把 ' 改为 \' 即可。