初识SDK

2022-08-22  本文已影响0人  挤出来的小酒窝

SDK安装

  1. Tools/Android SDK Tools:基础工具包。只需下载一个,一般下载最新版
  2. Tools/Android SDK Platform-tools:存放公用开发工具,比如adb,sqlite3等。只需下载一个,一般下载最新版
  3. Tools/Android SDK Build-tools:可以安装多个版本,Android项目构建工具


    Tools目录
  4. Android xxx(API xxx)目录:可选的各平台开发工具,目前测试用只下载SDK Platform


    Android xxx目录

    注意:preview表示预发布版本

  5. Extras(可选的拓展)/Goole USB Driver
  6. Extras(可选的拓展)/Goole Web Driver
  7. Extras(可选的拓展)/Android Support Repository(可选):主要是方便在gradle中使用Android Support Libraries,因为Google并没有把这些库发布到maven center或者jcenter去,而是使用了Google自己的maven仓库。
  8. Extras(可选的拓展)/Intel x86 Emulator Accelerator(HAXM installer)(可选):windows平台的Intel x86模拟器加速工具,配合Intel x86 atom/atom_64 System Image使用可加快模拟器的运行速度。


    Extras(可选的拓展)目录

认识SDK文件夹

环境变量设置

配置检测

C:\Users\Administrator>adb
Android Debug Bridge version 1.0.41
Version 29.0.6-6198805
Installed as D:\Program Files\Android\android-sdk\platform-tools\adb.exe

global options:
 -a         listen on all network interfaces, not just localhost
 -d         use USB device (error if multiple devices connected)
 -e         use TCP/IP device (error if multiple TCP/IP devices available)
 -s SERIAL  use device with given serial (overrides $ANDROID_SERIAL)
 -t ID      use device with given transport id
 -H         name of adb server host [default=localhost]
 -P         port of adb server [default=5037]
 -L SOCKET  listen on given socket for adb server [default=tcp:localhost:5037]
C:\Users\Administrator>aapt
Android Asset Packaging Tool

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

 aapt d[ump] [--values] [--include-meta-data] WHAT file.{apk} [asset [asset ...]]
   strings          Print the contents of the resource table string pool in the APK.
   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.

参考资料

· http://www.cnblogs.com/kangjianwei101/p/5621238.html#m2

· http://blog.csdn.net/aiynmimi/article/details/51028499

上一篇 下一篇

猜你喜欢

热点阅读