我正在尝试生成 ant 构建文件。但是我收到一个错误
"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"
我使用 file->export->Ant-buildfile 从 eclipse 构建
当我尝试从命令行构建时,我收到:
$ ant debug
Buildfile: /build.xml
BUILD FAILED
Target "debug" does not exist in the project "com.Grupp01.gymapp.MainActivity".
error和eclipse的截图:
最佳答案
我遇到了同样的问题。解决方法是:右键单击库 -> 属性 -> Java 构建路径 -> 订购和导出。条目“gen”必须高于“src”(使用向上、向下按钮)。
关于android - 生成 Ant 构建文件错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12891928/