1.运行程序时提示:the selection cannot be launched ,and there are no recent launches
解决方案:
右键你要运行的类,Run as - Java Application
2.运行程序时提示:ActivityManager: Warning: Activity not started, its current task has been brought to the front
解决方案:
右键你要运行的类,Run as - Java Application
2.运行程序时提示:ActivityManager: Warning: Activity not started, its current task has been brought to the front
原因是:两个应用起了同样的名字,模拟器总是识别第一个或者是两个应用中的一个已经在系统的缓存中,这是android的机制
解决方法是:重新启动一下模拟器;如果还是不行,可以先把模拟器delete掉再重新add就可以了3.创建AVD时,Name栏可以使用的字符包括“a~z”“A~Z”“0~9”“.”“-”“_”。a~z表示从a到z共26个字母,并且在两个字母中间不能有空格
4.在eclipse中,每执行一次代码就需要重新打开一次虚拟机?
答:不用每次都启用新的。启用了一个虚拟机后,不要关闭虚拟机,只需要点击虚拟机里面的首页或者点返回键退出当前测试的程序就可以了