一、配置IDE,即studio:html
- 修改最大堆内存,以提升studio性能,具体见:https://developer.android.com/studio/intro/studio-config.html,搜索“自定义VM选项”。
二、 快捷键详解:https://developer.android.com/studio/intro/keyboard-shortcuts.html.android
三、 项目概览:整个studio工程是一个完整的项目,即一个App应用; 里面包含了若干module,即模块,默认建立一个模块,即app目录。能够建立其余模块,好比第三方模块,app能够引用第三方模块的接口。git
- 项目总体结构介绍:https://developer.android.com/studio/projects/index.html
- 添加C和C++代码(未深读):https://developer.android.com/studio/projects/add-native-code.html
- 库模块的建立:https://developer.android.com/studio/projects/android-library.html
- 资源建立与路径的指定:https://developer.android.com/studio/write/add-resources.html
默认res路径是src/main/res, 如需指定路径,按照下面的方式配置,在模块的build.gradle中添加:github
android {
sourceSets {
main {
res.srcDirs = ['src/main/res', 'src/ext/res']
}
}
}
四、WebP图片的转化:https://developer.android.com/studio/write/convert-webp.html
五、Lint代码检查工具(未深读):https://developer.android.com/studio/write/lint.html#commandline
六、注解(annotation)的添加:https://developer.android.com/studio/write/annotations.html
七、tools属性的用法:https://developer.android.com/studio/write/tool-attributes.html
八、构建与运行应用:
如何在设备上运行App:配置调试开关,设置系统以检测设备(adb devices找不到设备时配置):https://developer.android.com/studio/run/device.html
- 在Windows上开发App安装USB驱动方法:https://developer.android.com/studio/run/oem-usb.html
九、应用的配置:web
- 构建流程、gradle配置文件使用介绍:https://developer.android.com/studio/build/index.html
- build.gradle采用DSL语言 以 Groovy 语言描述和操做构建逻辑(未深读):
DSL参考:http://google.github.io/android-gradle-dsl/current/index.html#N1004Dapp
构建类型全部配置属性:http://google.github.io/android-gradle-dsl/current/com.android.build.gradle.internal.dsl.BuildType.htmlide
Groovy参考:http://groovy.codehaus.org/工具
- applicationId和清单文件的package:https://developer.android.com/studio/build/application-id.html
- 构建依赖:依赖设置、依赖顺序、依赖仓库、生成依赖树:https://developer.android.com/studio/build/dependencies.html
- 配置构建变体: 建立源集、依赖相配置、签名:https://developer.android.com/studio/build/build-variants.html#build-types
- 生成不一样密度的Apk(未深读):https://developer.android.com/studio/build/configure-apk-splits.html
- 合并多个清单文件(未深读):https://developer.android.com/studio/build/manifest-merge.html
- 将build.gradle属性注入到清单文件:https://developer.android.com/studio/build/manifest-build-variables.html
- 压缩Apk大小: 压缩代码,混淆;压缩资源,移除备用资源:https://developer.android.com/studio/build/shrink-code.html
- 方法数超过64K限制解决方案:https://developer.android.com/studio/build/multidex.html
- Apk分析器:分析Apk里面的文件大小,比较两个Apk文件:https://developer.android.com/studio/build/apk-analyzer.html
- Gradle一些tip和建议:资源集、全局项目属性、lib配置、压缩代码资源、发布apk签名: https://developer.android.com/studio/build/gradle-tips.html
十、调试Debug应用(未读):https://developer.android.com/studio/debug/bug-report.html性能
十一、测试应用:单元测试、Mokey测试及其余(未读):https://developer.android.com/studio/test/monkeyrunner/MonkeyDevice.html单元测试
十二、分析应用:内存分析、性能分析、视图等等(未读):https://developer.android.com/studio/profile/index.html
1三、发布应用:签署应用、版本控制等:https://developer.android.com/studio/publish/versioning.html
1四、命令行工具:SDK tools、SDK Build tools、SDK platform Tools:https://developer.android.com/studio/command-line/index.html
- adb命令(未读):https://developer.android.com/studio/command-line/adb.html
- apksigner,签名命令(未读):https://developer.android.com/studio/command-line/apksigner.html
- avdmanager(未读):https://developer.android.com/studio/command-line/avdmanager.html
- bmgr(BackupManager)(未读):https://developer.android.com/studio/command-line/bmgr.html
- etc1tools(未读):https://developer.android.com/studio/command-line/etc1tool.html
- JOBB(未读):https://developer.android.com/studio/command-line/jobb.html
- logcat命令(未读):https://developer.android.com/studio/command-line/logcat.html
- mksdcard(未读):https://developer.android.com/studio/command-line/mksdcard.html
- sdkmanager(未读):https://developer.android.com/studio/command-line/sdkmanager.html
- zipalign(未读):https://developer.android.com/studio/command-line/zipalign.html
- 环境变量(未读):https://developer.android.com/studio/command-line/variables.html