发布模式下编译时出错

发布于 2024-12-11 03:51:53 字数 301 浏览 0 评论 0原文

我是 android 新手,我想将我的第一个应用程序提交到市场。我按照开发人员网站上给出的步骤进行操作。当我尝试在命令行上以发布模式构建应用程序时,出现以下错误。

命令行上的代码

C:\Users\pavan.more\workspace\Litofinter>ant release

error----> C:\Users\pavan.more\workspace\Litofinter>ant 发布 “ant”不被识别为内部或外部命令, 可运行的程序或批处理文件。

任何人都可以知道吗?为什么会这样?

I am novice to andriod and I want to submit my first app to market. I following the steps as giving on developer site.When i try to build my application in release mode on command line it gives me following error.

code on command line

C:\Users\pavan.more\workspace\Litofinter>ant release

error---->
C:\Users\pavan.more\workspace\Litofinter>ant release
'ant' is not recognized as an internal or external command,
operable program or batch file.

Can anyone has idea?Why is it so??

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

好多鱼好多余 2024-12-18 03:51:53

我收到这个错误是因为我没有安装 Apache ant java 库,它是一个 Java 库和命令行工具,其任务是将构建文件中描述的进程驱动为相互依赖的目标和扩展点。 Ant 的主要已知用途是构建 Java 应用程序。 Ant 提供了许多内置任务,允许编译、组装、测试和运行 Java 应用程序。
在发布模式下构建应用程序需要它。下载 Apache 的链接是 http://ant.apache.org/bindownload.cgi 用于安装使用链接 http://www.michael-thomas.com/tech/apache/ant/tutorial_install_ant/index.htm
然后从命令行 ant release 将对我有用。

I got that error because i have not installed Apache ant java library, which is a Java library and command-line tool whose mission is to drive processes described in build files as targets and extension points dependent upon each other. The main known usage of Ant is the build of Java applications. Ant supplies a number of built-in tasks allowing to compile, assemble, test and run Java applications.
It is required for building application in release mode. For downloading Apache link is http://ant.apache.org/bindownload.cgi for installation use the link http://www.michael-thomas.com/tech/apache/ant/tutorial_install_ant/index.htm.
Then from command line ant release will work for me.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文