dx命令详解

usage:

[html]  view plain  copy
 print ?
  1. dx --dex [--debug] [--verbose] [--positions=<style>] [--no-locals]  
  2. [--no-optimize] [--statistics] [--[no-]optimize-list=<file>] [--no-strict]  
  3. [--keep-classes] [--output=<file>] [--dump-to=<file>] [--dump-width=<n>]  
  4. [--dump-method=<name>[*]] [--verbose-dump] [--no-files] [--core-library]  
  5. [--num-threads=<n>]  
  6. [<file>.class | <file>.{zip,jar,apk} | <directory>] ...  
  7.   Convert a set of classfiles into a dex file, optionally embedded in a  
  8.   jar/zip. Output name must end with one of: .dex .jar .zip .apk. Positions  
  9.   options: none, important, lines.  
  10. dx --annotool --annotation=<class> [--element=<element types>]  
  11. [--print=<print types>]  
  12. dx --dump [--debug] [--strict] [--bytes] [--optimize]  
  13. [--basic-blocks | --rop-blocks | --ssa-blocks | --dot] [--ssa-step=<step>]  
  14. [--width=<n>] [<file>.class | <file>.txt] ...  
  15.   Dump classfiles, or transformations thereof, in a human-oriented format.  
  16. dx --junit [-wait] <TestClass>  
  17.   Run the indicated unit test.  
  18. dx --find-usages <file.dex> <declaring type> <member>  
  19.   Find references and declarations to a field or method.  
  20.   declaring type: a class name in internal form, like Ljava/lang/Object;  
  21.   member: a field or method name, like hashCode  
  22. dx -J<option> ... <arguments, in one of the above forms>  
  23.   Pass VM-specific options to the virtual machine that runs dx.  
  24. dx --version  
  25.   Print the version of this tool (1.7).  
  26. dx --help  
  27.   Print this message.  

 

利用dx.bat脚本将.class文件编译成class.dex文件:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值