Android学习第三天-打包常用命令(1)_移动开发_编程开发_程序员俱乐部

中国优秀的程序员网站程序员频道CXYCLUB技术地图
热搜:
更多>>
 
您所在的位置: 程序员俱乐部 > 编程开发 > 移动开发 > Android学习第三天-打包常用命令(1)

Android学习第三天-打包常用命令(1)

 2013/11/8 16:15:31  小学徒V  博客园  我要评论(0)
  • 摘要:在前面《Android学习第一天-adb常用命令》和《Android学习第二天-android常用命令》两篇博文中,我们重点讲解了adb和android的常用命令,下面我们讲解一下打包的时候常用的命令吧3.emulator一般情况下,我们使用这个命令进行模拟器的开启比较多模拟器的开启方式如下:emulator-avd<avd_name>[<options>]或者emulator@<avd_name>一般情况下我们都是直接打开即可
  • 标签:android 学习 常用 命令

在前面《Android学习第一天-adb常用命令》和 《Android学习第二天-android常用命令》两篇博文中,我们重点讲解了adb和android的常用命令,下面我们讲解一下打包的时候常用的命令吧

3. emulator

一般情况下,我们使用这个命令进行模拟器的开启比较多

模拟器的开启方式如下:

emulator -avd <avd_name> [<options>]
或者
emulator @<avd_name>

一般情况下我们都是直接打开即可,具体的options可以参考http://developer.android.com/tools/help/emulator.html,在此不做重复说明

4. Android Asset Packaging Tool

Android Asset Packaging Tool,简称aapt,通过aapt,我们可以对打包的资源进行管理,包括查看,增加,删除。

4.1 查看资源包内的内容

aapt l[ist] [] <path_to_apk>
eg:
aapt l xiaoxuetu-debug.apk

终端的执行结果是:

JSsfZRfF/bpX0YhPoGAFBDyPcTbGccxfe77AuyFtZvr/44xvZQUeJngGcMADA+Ud+3fXAK3/eEdX44eeqq8P3V/ynmxfcBYHls319J9NdEDTqnGEfTkwQJpdDqEpcZOpND2swUfQMAqGTt+0urAACAucD3AQDaAt8HAGgLfB8AoC3wfQCApvgfSacN+cTd0xUAAAAASUVORK5CYII=" alt="" />

4.2 查看APK内的指定内容

Usage:
 aapt l[ist] [-v] [-a] file.{zip,jar,apk}
   List contents of Zip-compatible archive.

 aapt d[ump] [--values] WHAT file.{apk} [asset [asset ...]]
   badging          Print the label and icon for the app declared in APK.
   permissions      Print the permissions from the APK.
   resources        Print the resource table from the APK.
   configurations   Print the configurations in the APK.
   xmltree          Print the compiled xmls in the given assets.
   xmlstrings       Print the strings of the given compiled xml assets.

例如,我要查看这个包所使用到的权限:

aapt dump permissions xiaoxuetu-debug.apk

 终端的执行结果:

因为该项目并没有使用到权限,所以也就显示为空了。

 4.3 打包生成资源压缩包

 aapt p[ackage] [-d][-f][-m][-u][-v][-x][-z][-M AndroidManifest.xml] \
        [-0 extension [-0 extension ...]] [-g tolerance] [-j jarfile] \
        [--debug-mode] [--min-sdk-version VAL] [--target-sdk-version VAL] \
        [--app-version VAL] [--app-version-name TEXT] [--custom-package VAL] \
        [--rename-manifest-package PACKAGE] \
        [--rename-instrumentation-target-package PACKAGE] \
        [--utf16] [--auto-add-overlay] \
        [--max-res-version VAL] \
        [-I base-package [-I base-package ...]] \
        [-A asset-source-dir]  [-G class-list-file] [-P public-definitions-file] \
        [-S resource-sources [-S resource-sources ...]] \
        [-F apk-file] [-J R-file-dir] \
        [--product product1,product2,...] \
        [-c CONFIGS] [--preferred-configurations CONFIGS] \
        [raw-files-dir [raw-files-dir] ...] \
        [--output-text-symbols DIR]

上面的参数有点多,下面给出一些常用参数的简单说明吧:

  -f    如果编译出来的文件已经存在,强制覆盖

  -m  使生成的包的目录存放在-J参数指定的目录

  -J    指定生成的R.java 的输出目录 

  -S    res文件夹路径

  -A    assert文件夹路径

  -I     某个版本平台的android.jar的路径

  -F    具体指定APK文件的输出

  -J    R.java文件的生成目录

在AAPT中常用的命令格式是:

aapt p -M <Android应用清单的路径> -I <额外添加的包>  -F <目标文件的路径>

-I 额外添加的包必须包含android.jar这个jar包

 下面举一个例子

aapt p -S res -M AndroidManifest.xml -I D:\Java\adt-bundle-windows\sdk\platforms\android-10\android.jar -F ./xiaoxuetu.apk

 终端执行结果:

 当然,这里打出来的apk并不是完整可用的,真正的apk打包还需要经过dex的编译等流程。

 4.4 从压缩包中删除指定文件

 aapt r[emove] [-v] file.{zip,jar,apk} file1 [file2 ...]
   Delete specified files from Zip-compatible archive.

首先,我们查看下前面打包的xiaoxuetu.apk里面的内容

下面如果我们要删除里面的AnroidManifest.xml文件,执行下面命令:

aapt r xiaoxuetu.apk AndroidManifest.xml

终端的执行结果:

QQAANAShhwAALSFIQcAAG1hyAEAQFsYcgAA0BaGHAAAtIUhBwAAbWHIAQBAWxhyAADQFoYcAAC05fH17d1jQurs4E6dubN3zarGI5Gj9W+f+3Wu0Lu7IXOv9/SRi/2drvpdzRXu4ld3ckL9/peczXFYLHIQfSxx+3H/ZrnJo4dQ9aKr+pfnAj9qVf3jxIel7/deVhUt1Z380bzs3+nW4ZJRZBXO9HeK7zkullgw5KxiFEqy+J8MubU+L/ATvOqOboE5/8d1fe95ruJaOZTq2kFyUKEJ3CG35bhyt6CzuMqDGXLuPBuONLsS3ZOrPDw71HGtRq/FqnU3h2G/ub5tNspnzr/7VbLiWtqTW/TRFirl6Z61lnT9oX+3biQVebC95/vdjyX/w77cNpM9yWJ0Vul36DNvYVgi9zbMze4X8xHXIz/RV7mIUjeKSNSJTEa4xxUdRfwfHl7+DjnRnOLSmhYbc9ft2UgnikDRqT5HOayqG+VT9TPh3621qt9If08+igeli2i/GGlSLvewvV99v2heN3wL9zL0r9gohbmw3+09DvudaEqRmqu7db4/B5E8q6jfapXTw8tXW2PCZWJuGEq0TW8vv4MzqVzELT2MNeorN5Y/R/kMe0nMKwHa0vpmsS9XPz9r9ZX2xRZy/apVWy5iqyye7X0vUbMTlqriw3wS/1sF+6AEUq2V5FOtm29zI40SFpN3q1gRG+NkFTvkhibcDdZf9cJczYlLqnoYmhE3lOruyWfYSyIyvOizj0pQE325+tX7ir5alY94L6JV3b9ypOW96PuHlvbo73wf9H7ncnZ7LN2RXRS3zenkvP/BikRXWa7iDjlbUuy2dAGJXfeIqDP9ElSfI9sL9d1yQz9KOIl/92FCX+lrVT76feUrE/fiPuc5J2bE/V3vRfE/Z8myp8fEj+J/uqnTjjtK3Jb8V71tv4rqupq51EnnYdH/kzsz5DavLJ5MHPY5ORKVmNBR1vMckkwUn0lRMQfbry0dKZ+tzOm7PhV9RScyPNTJu676SUrnJE0l+92P7wbdf0lf0UlyiHSq+4fNWv08T+U58qOEEPWVtJAHJe6P/NuD0/6jI8P16KPSb1TF5/H1m7Tvtik0DLAb3rfrQv5Q4MPH79e2sJfyYAfYAe/bdSF/qNFgyAEAAPg8ffpxbQsAAADH8PT557UtAAAAHANDDgAA2vLMkAMAgK48f2HIAQBAUxhyAADQFoYcAAC0hSEHAABtYcgBAEBbGHIAANAWhhwAALSFIQcAAG1hyAEAQFsYcgAA0BaGHAAAtIUhBwAAbWHIAQBAV34BLJy4uXYK/kYAAAAASUVORK5CYII=" alt="" />

什么都没有输出表示已经删除成功了,我们再来查看下该apk中的AnroidManifest.xml是不是真的已经被删除了:

是的,我们再也看不到AndroidManifest.xml。说明已经删除成功了。

 4.5 往压缩包中添加指定文件

 aapt a[dd] [-v] file.{zip,jar,apk} file1 [file2 ...]
   Add specified files to Zip-compatible archive.

假设我们要往xiaoxuetu.apk中加回AndroidManifest.xml文件,我们继续执行:

aapt a xiaoxuetu.apk AndroidManifest.xml

终端的执行结果是:

XLSI6JH8V/OaltYI8St13+e71dPoriupq51Cby8O37rN/J7Qy5ySuDmymHvU6WRCEKOsp4XoekJorPJKhYB5uvDR0p70Zq+q5PRV/RiQw3dfKse/0koZtE+slk9/bFoPvv0ld0kjok+XbNbybbW0/lOvKjFCHKK0khL5Q4P/JvF5b9R0ua49Gtkm8UxeHh6/c1/uKJmjDADPi83RbqDyprNLm+xg4wBp+320L9oYM1mhwAAIADTQ4AAJbl4et/NDkAAFiTj19ocgAAsCg0OQAAWBalyUXfYip8u2nWd6JySy/pb0Smxz3FF72SL6Tdv3kAgCLlJlf+Fu+hTW4Lfjm4TWpFVmGnPyg+slwMQZMDgDdErcklb0tNjj5S3SZXbsld4e5BpxCFJgcAy/Lxy795k2sei0lTsUt2j+ybljs/0tH180e5iBI3qpuoE5mMcJcrOrp/AIAVaDY5F9statebd0Dn83OR6NrKduWSx7UdZaQOInmtonx7owAAnJuRJmfP9/LhvjuUa81GjOWm0FwbDSbTrH40PxlPSMRtGctRAABOzP28ySn60areWAWf0aA4raaTQ5MDAGhAkzu6yY14u3wUxXU1c6lNw41bGAcAuBnXaXLbnyfg7iI/MaMTf/c00U9sJ/Mj/3Zh2X+0pDke3Sr5RlEs4z4BAG5MrckBAACcAJocAAAsC00OAACWhT/QDAAAy0KTAwCAZaHJAQDAstDkAABgWWhyAACwLDQ5AABYlZ/JlEPF1As71QAAAABJRU5ErkJggg==" alt="" />

我们再来查看xiaoxuetu.apk中的内容发现AndroidManifest.xml又回来啦:

4.6查看aapt的版本号

aapt v

终端的执行结果:

 5. javac编译java文件

首先我们来讲解下javac的用法:

用法: javac <options> <source files>
其中, 可能的选项包括:
  -g                         生成所有调试信息
  -g:none                    不生成任何调试信息
  -g:{lines,vars,source}     只生成某些调试信息
  -nowarn                    不生成任何警告
  -verbose                   输出有关编译器正在执行的操作的消息
  -deprecation               输出使用已过时的 API 的源位置
  -classpath <路径>            指定查找用户类文件和注释处理程序的位置
  -cp <路径>                   指定查找用户类文件和注释处理程序的位置
  -sourcepath <路径>           指定查找输入源文件的位置
  -bootclasspath <路径>        覆盖引导类文件的位置
  -extdirs <目录>              覆盖所安装扩展的位置
  -endorseddirs <目录>         覆盖签名的标准路径的位置
  -proc:{none,only}          控制是否执行注释处理和/或编译。
  -processor <class1>[,<class2>,<class3>...] 要运行的注释处理程序的名称; 绕过默认的搜索进程
  -processorpath <路径>        指定查找注释处理程序的位置
  -d <目录>                    指定放置生成的类文件的位置
  -s <目录>                    指定放置生成的源文件的位置
  -implicit:{none,class}     指定是否为隐式引用文件生成类文件
  -encoding <编码>             指定源文件使用的字符编码
  -source <发行版>              提供与指定发行版的源兼容性
  -target <发行版>              生成特定 VM 版本的类文件
  -version                   版本信息
  -help                      输出标准选项的提要
  -A关键字[=值]                  传递给注释处理程序的选项
  -X                         输出非标准选项的提要
  -J<标记>                     直接将 <标记> 传递给运行时系统
  -Werror                    出现警告时终止编译
  @<文件名>                     从文件读取选项和文件名

通过上面的选项可以知道在编译过程中:

1) 由于我们的Android编码使用的是UTF-8,所以需要指定 -encoding UTF-8

2) 由于我们还需要指定生成特定VM版本的类文件,所以我们需要制定 -target 为1.7

3) 由于我们编译的是Android项目,所以需要另外Android的jar包,才能在编译过程中,避免引入错误,因此需要用到 -bootclasspath选项,引入响应android版本的jar包。

4) 由于我们需要制定编译后的class文件的输出位置,所以我们还需要用到 -d这个选项

因此,一般情况下我们编译一个安卓项目中的class文件的命令格式为:

javac -encoding <源文件使用的编码格式> -target <VM版本> -bootclasspath <覆盖引导类文件的位置> -d <指定放置生成的类文件的位置> <需要编译的java文件, 格式是: file1, file2>

 下面举一个例子,直接编译xiaoxuetu这个Android项目的java文件:

javac -encoding UTF-8 -source 1.6 -target 1.6 -bootclasspath D:\Java\adt-bundle-windows\sdk\platforms\android-10\android.jar -d E:\Workspaces\android\xiaoxuetu\xbin E:\Workspaces\android\xiaoxuetu\src\com\xiaoxuetu\*.java E:\Workspaces\android\xiaoxuetu\gen\com\xiaoxu
etu\*.java

终端的执行结果是:

我们在来看看xbin目录下,编译好的class文件都存在了:

6.使用dex编译Android应用

6.1 使用方法

 相信大家都知道,在Android平台中,使用的是并没有遵循JVM规范的Dalvik虚拟机,他并不直接运行java二进制文件,而是运行它特有的*.dex文件,因此我们需要通过DX工具将Android应用的*.class文件转换为*.dexwenjian .

dex工具的常用命令格式如下

dx --dex --dump-to <需要编译到的路径> --core-library <需要编译的java文件所在的路径>

注意:<需要编译到的路径> 和 <需要编译的java文件所在的路径> 必须是全路径,否则他是以dx.bat所在的路径为相对路径进行查找和编译的

下面举一个例子,假设我要把前面编译的class文件转换成*.dex文件,需要执行命令:

dx --dex --dump-to E:\Workspaces\android\xiaoxuetu\xbin\classes.dex --core-library E:\Workspaces\android\xiaoxuetu\xbin

终端的执行结果:

再到E:\Workspaces\android\xiaoxuetu\xbin目录下我们就会找到classes.dex这个文件出来了。

6.2 常见的问题

问题1 : 在编译过程中,总是出现以下问题:

WTPer+Y6x1Xt5pKOLDohz/Yzq/b6X/ro4znn0UYaVPYXK6D13/On5Mmvnp9uGQwumPyBv6DGW1fmb+XXUJD6NsVpGIz2oPu1qOizYCAADA5ehvGwAAAAAB4T/0AQAAAAAAAAAAAAAAAAAAAAAAAAAAAOCBrPrx70ykq/+tP47+oX1w/vCAM/E2JvKK36J8S71vad2W/KUK8Rsi070CgOMj96Fc+u1hQv9bj6FP7MP+zdH6QvMp3x7CV+B7672/dWPG8ptB2Jwn7FiAD+BrHpWrC/nEt+YVfGIftoj3WlqIeCl+cb3ht6XWtwfRnC/rGMApwkdl4ojRD+pF+kIkvLX/aB4ZLX3T/8HPIWaiD9n4NqDHTZ3lfdB5w49aZJzrmCn1J/pj5tX6E3lDJ++q15QKzZv9ef27+mUrsoC/62xWq2SAn0A8wK25rWv9oK7NNaYOTwrnACrjTc+jn4tqP6Rw+n+yz0v8Z/3x47Wlbh+ywek+XJdXT7+53lJfaDrxcxmvzgvw5Wz/chhviejx8FqcYo7P7vVe52BDnxqiOb75LH5svqPj6Gd9Fv1f1edWH7YB3R8Rvx8pLYVzRR/8iWYfRp+r8s5Nv6jeUuqQt6wr8+lk9M04rQD4Ubqnj6Pj6P9db8Pp2fLZvc5yifhSxGmUjvePwlV9LsdPXnf7oOeO/RHxZifD4LIP5UTTQLf/c3nLkdvqzaRWXe9HSvPluLjbLRbgaxFPY3iydHXK6zDFeAosPGXKQ8E5Nbqn2FyfF/bhkKIcP3m9yn/XW2jD9OPkKid2+2D2fy6vjr+z3kyqXMcleTMzwqTQz+IBfo79I5c9wC2d7JF2TjGRN/TpnD5jvDhitP8xnd+30n9XxxnPPoqw0qcwOd2Hrn8dPybN/HT7cEjh9OeNeTPx99Yb3hpls4pEfFb7wbzWHyeWwQAAALAeXsMAAADQJvsfAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAAAAAAAAAAMv4H6DAXBIjitogAAAAASUVORK5CYII=" alt="" />

原因:这是因为我们写了相对路径,假设dx.bat所在的路径是D:\android_dev_tools/platform_tools下,那么在编译的时候,它将会到 D:\android_dev_tools/platform_tools 目录去寻找xbin文件夹,所以找不到xbin文件夹

解决方法:像示例中那样使用绝对路径

问题2:在编译过程中,总是出现以下问题:

BPMVbwks4FUQ8ziY/PNbrHFyUOElxX8MaZuMoOQz3+zYdZ5jkMOZEHczkJ/LxTNdhei9xPgDw3Y5osN7/K95bUw+M+BkTRFCeVfsR/XkgPtiyDxilLOZxn/8wmlL/l1O3eF9ekb3j4LqIdcieMrwuYn30mujzlTpk8xFPVyakrpeYBgA8xNc1WHMpvbQHauoBpuSpF2FuOW+D+nL907F2X338iZqYb01cR69ccQ6F9VHWndhXKh/x9PX4Yt0A4JneDdb2VzMhNW4+PF6je/HiAyxgnpJ9gGUfJMP4XknFdYfHzTaDteI54r6Uek7vZTFOsKNhTK8O2fpk1xXjDPN5j7yZbyn5p/a7eI0A4CFOaLCameZb5px4XNmdGaRJqTmIN2vut3nX26xZKD3/4bj30lsoON3c18upWzafbJz+FHNQ3G+QapzPSn3iEpmD8UXRt9bHUeoZjCv7VeK8AODZnv1N7re6lXsPTuAIfN4A4EoPbrBu+NflG6aEB+PzBgCXeXCDBQAAcA0aLAAAgGI0WAAAAMVosAAAAIrRYAEAABQ7ocEa/h4T35fzx1P3+7B9eV8KJZ7ohQoW0k/RDdddCT5c9EmfBwCwnfMTrGyDpZz1PF+3XzHbW+1rJZPN+lopfXcTn/Pmrbl1g7BmkKOv160+DwBwlDs0WLVn4RzfeHVKmpLguDyrYKGqvZzvGz85AJB2xD/23L/0/sa87QwDDud7pzen7F+K+Vwyvn0y55tV8koxt64ZfD9unl5eh/7lMAdxX0GcYQ4r+XjB+1Tj3MT9xivGee4HgzRK9rsyDgA3cmaD5d2gxRux+LDxIpjHXmJnHmf3m63DdG769TJrGMxP5ebFn6jPMD0x/+3TdJxhksOY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MNN8y58Tjyu6yQby3zhx/v9vn7G0wVYfhuPfSWyg43dzX6/Mj4c1PxVfi9KeYg+J+N+fSDBc15yt5Bpsa7isYX6lnnBIA/LRnf5P7I2/9wdMdl+OKAABer0c3WA/+6/WDtwYAwBM8uMECAAC4Bg0WAABAMRosAACAYjRYAAAAtf4Hv73jthqOvHcAAAAASUVORK5CYII=" alt="" />

原因:经过谷歌,在Stackflow的解释为:

Your classes need to be compiled with jdk 5 or 6. You are probably using 7. If that doesn't work, you might also need to make sure that every single class is compiled right, even if in different projects. Solved my problem here.

解决方法:在javac编译的时候,通过source和target指定版本为1.6,详情见示例。

 7.apkbuilder

 这个工具用于将各种资源打包成一个Android应用。它的使用方法是:

Usage: apkbuilder <out archive> [-v][-u][-storetype STORE_TYPE] [-z inputzip]
            [-f inputfile] [-rf input-folder] [-rj -input-path]

    -v      Verbose.
    -d      Debug Mode: Includes debug files in the APK file.
    -u      Creates an unsigned package.
    -storetype Forces the KeyStore type. If ommited the default is used.

    -z      Followed by the path to a zip archive.
            Adds the content of the application package.

    -f      Followed by the path to a file.
            Adds the file to the application package.

    -rf     Followed by the path to a source folder.
            Adds the java resources found in that folder to the application
            package, while keeping their path relative to the source folder.

    -rj     Followed by the path to a jar file or a folder containing
            jar files.
            Adds the java resources found in the jar file(s) to the application
            package.

    -nf     Followed by the root folder containing native libraries to
            include in the application package.

 

 下面讲解下常用的命令吧:

  -rf 参照源文件的目录的结构

  -u 创建一个没有签名的包

  -z 将某个压缩文件添加到包中

  -f 将某个文件添加到保重

 那么常用的apkbuilder命令格式就是:

apkbuilder <APK输出路径> -u -z <需要添加的压缩资源包> -f <需要添加的文件> -rf <源文件所在的目录>

注意:<需要编译到的路径> 和 <需要编译的java文件所在的路径> 必须是全路径

 下面举个例子吧:

apkbuilder E:\Workspaces\android\xiaoxuetu\xbin\xiaoxuetu.apk -u -z E:\Workspaces\android\xiaoxuetu\xbin\xiaoxuetu.ap_ -f E:\Workspaces\android\xiaoxuetu\xbin\class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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOBmD884TvRxUM/g7Ec71XgU5O747+9zKwcAfCT726jcrwQZv8w+5UV4vMi7fwB1b3Q3/s/rVvJWxQMAfrnylbx86+7/mz+wztZ5d+MH79E7mNX/6V0DAD7G8yvH/S1V/pyyK0tMG+d5pTxbxnFLdfcfXHfnUPabx7fNRvOZ1e9+lay4Je3MLfpoE7Xm6Z61JeXrAACclLyAy1P24/K+LF+c1/cfE8rZ5J3ttqDE6V5HcziVN5pPt55B/W6uU/1G8Xfmo9SgdwEAwBnLO2l88OuteQkv0av63ZC8+JUyljjlS/dhlHmjDWVe5TqaT9lLUrwyQJta3yz25cbPz9r4Svt6CwAAnPU/R31vIKPQWzgAAAAASUVORK5CYII=" alt="" />

 同时在E:\Workspaces\android\xiaoxuetu\xbin\我们可以打包好的apk文件了。

 

注意:本文主要是讲解打包会用到的常用命令的使用方法,并不说根据这些步骤就能够打出一个可用的包,具体一个详细的打包流程,在后续的博文中会讲到,敬请期待。谢谢。

 

发表评论
用户名: 匿名