首先,出现一系列问题的原因是:修改了工程名。
于是开始右击 工程-->clean,出现错误:
报类似的错误:
Problems encountered while deleting resources.
Could not delete 'D:\workspaces\myeclipse8_6\struts2demo\WebRoot\WEB-INF\lib\struts-2.2.1\commons-collections-3.2.jar'.
Problems encountered while deleting files.
Could not delete: D:\workspaces\myeclipse8_6\struts2demo\WebRoot\WEB-INF\lib\struts-2.2.1\commons-collections-3.2.jar.
..........
出现上述问题,运行程序,报类似以下错误:
java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{*****Activity}: java.lang.ClassNotFoundException: Didn't find class "*****Activity" on path: /data/app/*******.apk
解决方法:
重启 eclipse,问题解决;
弄得我都无语了,有类似的问题找到最初的根源就ok了,否则会引发一连串的问题~
值得借鉴的连接:
http://blog.csdn.net/lovexieyuan520/article/details/9032797
http://blog.csdn.net/xufaxi/article/details/17464517