Android ant 构建项目失败 [英] Android ant build project failure

查看:34
本文介绍了Android ant 构建项目失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试创建 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆