robotium测试工程导出build.xml文件

来源:互联网 发布:linux压缩成多个文件 编辑:程序博客网 时间:2024/04/29 01:02

         使用eclipse导出ant编译所需要的build.xml文件报错了

弹框提示:"The build class path order of the source directories of project library is not correct. Exported Ant buildfile will not compile your sources correctly until you swap the order of these directories:gen<->src"

解决:如提示所说,将被测工程的gen与src对换位置

右击被测试工程,选择Build Path,在Order and Export,将gen和src对换位置,再用eclipse导出ant的build.xml文件就行了。

不然直接ant的话可能就会报错:Basedir E:\surfnews\surf_Robotium\${ExampleProject.location} does not exist

原创粉丝点击