发布模式下编译时出错
我是 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我收到这个错误是因为我没有安装 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.