android
1.全局选项:
- -s --silent : Silent mode,show errors only
- -v --verbose : Verbose mode,show errors,warnings and all messages
- --clear-cache:Clear the SDK Manager repository manifest cache
- -h --help : Help on a specific command
2.子命令:
- sdk
- avd
- list
- list avd
- list target
- list device
- list sdk
- create avd
- move avd
- delete avd
- update avd
- create project
- update project
- create test-project
- update test-project
- create lib-project
- update lib-project
- create uitest-project
- update adb
- update sdk
3.常用子命令:
- create avd
- create project
emulator
1.常用命令格式:
- emulator -avd <name>
- emulator -data <file>
adb
adb是连接Android手机与PC端的桥梁,可以让用户在电脑上对手机进行全面的操作
1.常用命令格式:
- adb devices
- adb push [-p] <local> <remote>
- adb pull [-p] [-a] <remote> [<local>]
- adb shell
- adb shell <command>
- adb install [-lrtsd] <file>
- adb install-multiple [-lrtsd] <file…>
- adb uninstall [-k] <package>
dx
将android应用的*.class文件转换为*.dex文件。不同版本的Android系统对应不同的dx
1.常用命令格式:
- dx –dex [—verbose] [—dump-to=<file>] [—core-library] [<file>.class | <file>.{zip,jar,apk} | <directory>]
aapt
资源打包工具,不同版本的Android系统对应不同的aapt
1.子命令:
- l[ist]
- d[ump]
- p[ackage]
- r[emove]
- a[dd]
- c[runch]
- s[ingleCrunch]
- v[version]
命令行开发工具
时间: 2024-10-05 03:00:34