未知论点: - 发布

时间:2014-10-13 14:07:37

标签: java android ant

我遇到的问题是无法执行dex:方法ID不在[0,0xffff]:65536中),所以我发现this post可以帮助我解决此错误。但正如您将在该帖子中看到它需要安装蚂蚁。所以我开始学习ANT的文档并完成ANT的安装。

但是现在我无法触发 ant -release 命令,虽然我能够解雇 ant -debug 。如果它可以帮助任何人,那么 ant -help ant -version 的完整日志已附加到此。你可以在这里看到没有 ant -release 命令:

D:\xxxxxandroid\NilayNew\xxxxxx>ant -help
ant [options] [target [target2 [target3] ...]]
Options:
  -help, -h              print this message
  -projecthelp, -p       print project help information
  -version               print the version information and exit
  -diagnostics           print information that might be helpful to
                         diagnose or report problems.
  -quiet, -q             be extra quiet
  -silent, -S            print nothing but task outputs and build failures
  -verbose, -v           be extra verbose
  -debug, -d             print debugging information
  -emacs, -e             produce logging information without adornments
  -lib <path>            specifies a path to search for jars and classes
  -logfile <file>        use given file for log
    -l     <file>                ''
  -logger <classname>    the class which is to perform logging
  -listener <classname>  add an instance of class as a project listener
  -noinput               do not allow interactive input
  -buildfile <file>      use given buildfile
    -file    <file>              ''
    -f       <file>              ''
  -D<property>=<value>   use value for given property
  -keep-going, -k        execute all targets that do not depend
                         on failed target(s)
  -propertyfile <name>   load all properties from file with -D
                         properties taking precedence
  -inputhandler <class>  the class which will handle input requests
  -find <file>           (s)earch for buildfile towards the root of
    -s  <file>           the filesystem and use it
  -nice  number          A niceness value for the main thread:
       1 (lowest) to 10 (highest); 5 is the default
  -nouserlib             Run ant without using the jar files from
          ${user.home}/.ant/lib
  -noclasspath           Run ant without using CLASSPATH
  -autoproxy             Java1.5+: use the OS proxy settings
  -main <class>          override Ant's normal entry point

D:\xxxxxandroid\NilayNew\xxxxxx>ant -version
Apache Ant(TM) version 1.9.4 compiled on April 29 2014

有谁能告诉我出了什么问题或者我错过了什么? 提前致谢

1 个答案:

答案 0 :(得分:0)

ant -debug ant -help ant -version 是ANT的开箱即用的功能。

请阅读:http://ant.apache.org/manual/index.html

中的ANT文档

ANT by defalut使用包含配置的build.xml文件(调用了&#39;方法&#39; /过程)。 ANT正在寻找&#39; -release&#39;目标在该文件中,如果不存在,则崩溃......

  1. 检查build.xml,查找&#39; -release&#39;目标
  2. 重新检查您需要执行的命令
  3. 为什么要推出 ant-release