1、控制台报错“The connection toadb is down, and a severe error has occured.”
解救方法:看看你是否安装了豌豆夹这个程序,并设置了允许豌豆夹自动连接到手机的选项,如果是那么在进程中就会有豌豆夹的后台进程,从任务管理器中将豌豆夹的后台进程结束掉,再重启Eclipse就OK了。
2、Buttonbn=(Button)findViewById(R.id.bn)会报错“id cannot be resulted or is not a field”
解救方法:在main.xml下保存刚才改动的button的id,这样才能在R.Java下生成关于Button的id的相关信息。