Android ant 构建项目失败 [英] Android ant build project failure
问题描述
我正在尝试创建 android UI 测试.我已按照此链接中的示例进行操作:http://developer.android.com/工具/测试/testing_ui.html#running.
I am trying to create android UI test. I have followed the example in this link: http://developer.android.com/tools/testing/testing_ui.html#running.
请注意,在构建和部署您的 uiautomator 测试"阶段,有一个错误,第一个命令必须是/tools/android create uitest-project -n -t 1 -p .无论如何,这不是我的问题.
Note that in phase "Building and Deploying Your uiautomator Tests", there is a mistake, the first command must be /tools/android create uitest-project -n -t 1 -p . Anyway, this is not my problem.
我的problem在步骤ant build",我收到这个错误:
My probelm is in step "ant build", I am getting this error:
-post-compile:
-dex:
[dex] input: c:\Users\tabony\workspace\bin\classes
[dex] Converting compiled files and external libraries into c:\Users\tabony\workspace\bin\classes.dex...
[dx] no classfiles specified
BUILD FAILED
c:\Program Files (x86)\Android\android-sdk\tools\ant\ **uibuild.xml:197: null returned: 1**
Total time: 1 second
非常感谢您的帮助.
推荐答案
我遇到了同样的错误.我犯的错误是:我只设置路径直到我的项目所在的目录.(前一步)有 xyz/projects/Tests
I was getting the same error. The error i made was:
i set the path only till the directory where my project was.(one step previously)
had xyz/projects/Tests
错误:给出的路径为:xyz/project
error: gave path as: xyz/project
更正路径:xyz/projects/Tests
这篇关于Android ant 构建项目失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!