我想为我的项目建立一个ant build。我发现了一个教程说,我需要的,以便为Ant构建准备写下面的命令:如何使用ant来搭建android
android update project -p
然后我得到的结果
Updated local.properties
Updated file ./proguard-project.txt
It seems that there are sub-projects. If you want to update them
please use the --subprojects parameter.
所以如果我尝试
android update project -p . --subprojects
然后我得到:
Updated local.properties
Updated file ./proguard-project.txt
Error: The project either has no target set or the target is invalid.
Please provide a --target to the 'android update' command.
如果我尝试
ant release
我得到
sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through an env var
有人可以帮我设置了蚂蚁的项目。 谢谢
目标应该指定为:'--target android-19'。 – 2014-09-16 12:41:32