我想为我的项目设置一个 ant 构建。我发现一个教程说我需要编写以下命令才能为 ant build 做准备:
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
有人可以帮我用蚂蚁建立项目吗?谢谢