使用google-play-services_lib打开antcall target ="release"

CQM*_*CQM 1 ant android google-play-services

我试图从命令行构建我的Android应用程序,我有一个脚本

ant release

失败了

BUILD FAILED
android-sdk-macosx/tools/ant/build.xml:473: Invalid file: myProject/google-play-services_lib/build.xml
Run Code Online (Sandbox Code Playgroud)

这对android google maps v2 api来说是必要的

我试图将我的其他build.xml添加到google-play-services_lib但是它没有识别我的目录特别是变量sdk.dir

我该如何修复此问题并将此库添加到我的ant构建中?

CQM*_*CQM 7

答案是这样的

ant.properties
local.properties
build.xml
Run Code Online (Sandbox Code Playgroud)

所有这些都需要复制到google-play-services_lib文件夹中.

需要编辑ant.properties以查找../密钥库的另一个目录.

如果您有任何自定义规则,则需要编辑复制的build.xml以查找这些规则的另一个目录 ../