Chinaunix首页 | 论坛 | 博客
  • 博客访问: 137437
  • 博文数量: 38
  • 博客积分: 1605
  • 博客等级: 上尉
  • 技术积分: 370
  • 用 户 组: 普通用户
  • 注册时间: 2006-04-12 14:59
文章分类

全部博文(38)

文章存档

2013年(3)

2012年(8)

2011年(28)

分类: 嵌入式

2011-06-22 11:07:59

Step 1.  Download ANT and install ANT

Step 2. 在Android SDK Tool目录下运行生成build.xml
android.bat update project -p . -t android-8

Step 3. 运行编译指令
ant release

Note: 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
  -verbose, -v           be extra verbose
  -debug, -d             print debugging information
  -emacs, -e             produce logging information without adornments
  -lib            specifies a path to search for jars and classes
  -logfile        use given file for log
    -l                    ''
  -logger    the class which is to perform logging
  -listener  add an instance of class as a project listener
  -noinput               do not allow interactive input
  -buildfile      use given buildfile
    -file                  ''
    -f                    ''
  -D=   use value for given property
  -keep-going, -k        execute all targets that do not depend
                         on failed target(s)
  -propertyfile   load all properties from file with -D
                         properties taking precedence
  -inputhandler  the class which will handle input requests
  -find           (s)earch for buildfile towards the root of
    -s             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          override Ant's normal entry point


问题:

1.如果无法运行ant请检查JAVA安装环境,是否正确。(在命令行分别输入java和javac看是否能运行,如可以说明JAVA环境没有问题)



阅读(2062) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~