如何建立与使用蚂蚁外部库一个Android应用程序? [英] How to build an android app with external libraries using ant?

查看:167
本文介绍了如何建立与使用蚂蚁外部库一个Android应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有使用我的IDE生成细现有项目。我想用 Android的更新命令生成蚂蚁构建文件为这个项目。

构建文件生成很好,但构建失败,因为它不是建立一些jarfiles中我有我的libs目录。

我想找出适当的方式告诉蚂蚁建立在我的库目录中的某些外部JAR文件。我应该怎么办呢?它是在build.properties的属性?我是否需要以某种方式修改的build.xml?还是有不同的解决方案,完全?

解决方案
  

但构建失败,因为它不是   建设有一些jarfiles中我有   我的libs目录。

和你的错误信息是......什么?我怀疑你可能misinter preting错误消息。

  

我想找出正确的方法   告诉Ant来构建一些   在我的库外部的jar文件   目录。我应该怎么办呢?

只要把它们放在库/ ,蚂蚁会在里面添加一切您的构建路径。请参见这个项目和的这个项目和的这个项目的例子。

I have an existing project that builds fine using my IDE. I'd like to use the "android update" command to generate an ant buildfile for this project.

The buildfile is generated fine, but the build fails because it's not building with some jarfiles I have in my libs directory.

I'd like to figure out the proper way to tell ant to build with some external jar files in my libs directory. How should I do this? Is it a property in build.properties? Do I need to modify build.xml somehow? Or is there a different solution entirely?

解决方案

but the build fails because it's not building with some jarfiles I have in my libs directory.

And your error message is...what? I suspect you may be misinterpreting the error message.

I'd like to figure out the proper way to tell ant to build with some external jar files in my libs directory. How should I do this?

Just put them in libs/, as Ant will add everything in there to your build path. See this project, and this project, and this project for examples.

这篇关于如何建立与使用蚂蚁外部库一个Android应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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