读书人

android出现异常求指导!

发布时间: 2012-09-01 09:33:02 作者: rapoo

android出现错误,求指导!!
小弟最近在学习android,但是在编程过程中没有提示错误,可是运行的时候却出现了the application has stopped unexpectedly的错误,同时logcat中出现了一大堆的错误,如下图
http://my.csdn.net/my/album/detail/1254463#1254463
求指导,谢谢!!

[解决办法]
空指针了 下面 提升了 出现null的方法 19行
[解决办法]
哥们!你的获取按钮的引用应该这么写Button button = (Button) findViewById(R.id.buju01);
[解决办法]
这一行出错了,
Button button = (Button) findViewById(R.layout.buju01);

findViewById的括号里面应该是你的Button的ID号,而不布局文件名称。


读书人网 >Android

热点推荐