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

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

问题描述

我想创建Android的UI测试。
我按照这个链接的例子: http://developer.android.com/工具/测试/ testing_ui.html#运行

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测试,有一个错误,第一个命令必须为/工具/ Android版的创建 uitest项目-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.

我的万阿英,蒋达清是一步Ant构建,我得到这个错误:

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

您的帮助是多少AP preciated。

Your help is much appreciated.

推荐答案

我得到了同样的错误。我所做的错误是:
 我设置的路径只能做到在我的项目是目录。(一步法previously)
XYZ /项目/测试

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 /项目

修正路径: XYZ /项目/测试

这篇关于Android的Ant构建项目失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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