zoukankan      html  css  js  c++  java
  • (转)Android命令行编译方法,不用Eclipse IDE

    我们都知道Google官方提供的Android开发环境是Eclipse,仅仅给出了ADT插件。但是在AndroidSDK Tool文件夹中我们可以找到一个名为activityCreator.bat的批处理文件,它调用的是tools\lib\activityCreator文件夹中的activityCreator.exe程序,其实为一个Python语言解释程序。activityCreator的Activity创建脚本全部参数使用方法如下:

      Activity Creator Script

      Usage:

      activityCreator [--out outdir] [--ide intellij] your.package.name.ActivityName

      Creates the structure of a minimal Android application.

      The following will be created:

      - AndroidManifest.xml: The application manifest file.

      - build.xml: An Ant script to build/package the application.

      - res : The resource directory.

      - src : The source directory.

      - src/your/package/name/ActivityName.java the Activity java class. packageName

      is a fully qualified java Package in the format . ... (with

      at least two components).

      - bin : The output folder for the build script.

      Options:

      --out : specifies where to create the files/folders.

      --ide intellij: creates project files for IntelliJ

      比如:定位目录到Android SDK的Tools目录中,执行activityCreator -out ReleaseDir cn.com.android123.www

      其中 -out参数为设置输出文件夹为ReleaseDir,而最后的cn.com.android123.www为我们的Package包名称。

      注意:由于Android SDK对应开发平台不同,而对应编译文件也不同,Windows下为批处理activityCreator.bat,而Linux系统自带Python解释器,所以为activityCreator.py

  • 相关阅读:
    HDU 2089 不要62
    HDU 5038 Grade(分级)
    FZU 2105 Digits Count(位数计算)
    FZU 2218 Simple String Problem(简单字符串问题)
    FZU 2221 RunningMan(跑男)
    FZU 2216 The Longest Straight(最长直道)
    FZU 2212 Super Mobile Charger(超级充电宝)
    FZU 2219 StarCraft(星际争霸)
    FZU 2213 Common Tangents(公切线)
    FZU 2215 Simple Polynomial Problem(简单多项式问题)
  • 原文地址:https://www.cnblogs.com/greywolf/p/3030046.html
Copyright © 2011-2022 走看看