如果你eclipse上装有Android的adt插件,运行testng可能会报找不到类的错误信息,错误案例与解决方法如下:
1、错误信息
2、解决方法
eclipse的顶部:windows->preference->general->editors->fileassociation->file types->*.xml->remove->ok
(如果你打开XML文件,提示Android XML Editor cannot process this input.--那么解决方法也是同上的!)
最后括号里这个XML报错信息我是百度找到的