Android SDK 目录和作用的分析详解

  1. 云栖社区>
  2. 博客>
  3. 正文

Android SDK 目录和作用的分析详解

杨粼波 2017-10-09 15:14:00 浏览977
展开阅读全文

SDK 的版本是: http://dl.google.com/android/android-sdk_r17-linux.tgz

参考 http://developer.android.com/sdk/exploring.html


目录:

SDK:

  • build-tools
  • platforms
  • platform-tools
    1. api
      • api-versions.xml
    2. adb
    3. fastboot
    4. NOTICE.txt
    5. source.properties
  • tools
    1. ant
    2. apps
    3. lib
    4. proguard
    5. support
    6. templates
    7. adb_has_moved.txt
    8. android
    9. ddms
    10. dmtracedump
    11. draw9patch
    12. emulator
    13. emulator64-arm
    14. emulator64-mips
    15. emulator64-x86
    16. emulator-arm
    17. emulator-mips
    18. emulator-x86
    19. etc1tool
    20. hierarchyviewer
    21. hprof-conv
    22. jobb
    23. lint
    24. mksdcard
    25. monitor
    26. monkeyrunner
    27. NOTICE.txt
    28. source.properties
    29. sqlite3
    30. traceview
    31. uiautomatorviewer
    32. zipalign

<sdk>/build-tools/

tools目录里面包含了重要的编译工具,比如aapt、aidl、逆向调试工具dexdump和编译脚本dx。

<sdk>/platform/

存放Android SDK Platforms平台相关文件,包括字体、res资源、皮肤、模板等

platforms是每个平台的SDK真正的文件,里面会根据APILevel划分的SDK版本,这里就以Android2.2来说,进入后有一个android-8的文件夹,android-8进入后是Android2.2SDK的主要文件,其中ant为ant编译脚本,data保存着一些系统资源,images是模拟器映像文件,skins则是Android模拟器的皮肤,templates是工程创建的默认模板,android.jar则是该版本的主要framework文件.


<sdk>/platform-tools/

Contains platform-dependent tools for developing and debugging your application.

These tools support the latest features of the Android platform and are typically updated only when a new platform becomes available.

These tools are always backward compatible with older platforms, but you must be sure that you have the latest version of these tools when you install a new SDK platform.


<sdk>/tools/

Contains tools for debugging and testing, plus other utilities that are required to develop an app.

If you've just installed the SDK starter package, then you already have the latest version of this package.

Make sure you keep this up to date.

ddms用于启动Android调试工具

draw9patch则是绘制android平台的可缩放png图片的工具

sqlite3可以在PC上操作SQLite数据库

monkeyrunner则是一个不错的压力测试应用,模拟用户随机按键

mksdcard则是模拟器SD映像的创建工具,

emulator是Android SDK模拟器主程序

traceview作为android平台上重要的调试工具。

网友评论

登录后评论
0/500
评论
杨粼波
+ 关注