1、配置IDE,即studio:
- 修改最大堆内存,以提高studio性能,具体见:https://developer.android.com/studio/intro/studio-config.html,搜索“自定义VM选项”。
2、 快捷键详解:https://developer.android.com/studio/intro/keyboard-shortcuts.html.
3、 项目概览:整个studio工程是一个完整的项目,即一个App应用; 里面包含了若干module,即模块,默认创建一个模块,即app目录。可以创建其他模块,比如第三方模块,app可以引用第三方模块的接口。
- 项目整体结构介绍: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中添加:
android {
sourceSets {
main {
res.srcDirs = ['src/main/res', 'src/ext/res']
}
}
}
4、WebP图片的转化:https://developer.android.com/studio/write/convert-webp.html
5、Lint代码检查工具(未深读):https://developer.android.com/studio/write/lint.html#commandline
6、注解(annotation)的添加:https://developer.android.com/studio/write/annotations.html
7、tools属性的用法:https://developer.android.com/studio/write/tool-attributes.html
8、构建与运行应用:
如何在设备上运行App:配置调试开关,设置系统以检测设备(adb devices找不到设备时配置):https://developer.android.com/studio/run/device.html
- 在Windows上开发App安装USB驱动方法:https://developer.android.com/studio/run/oem-usb.html
9、应用的配置:
- 构建流程、gradle配置文件使用介绍:https://developer.android.com/studio/build/index.html
- build.gradle采用DSL语言 以 Groovy 语言描述和操作构建逻辑(未深读):
DSL参考:http://google.github.io/android-gradle-dsl/current/index.html#N1004D
构建类型所有配置属性:http://google.github.io/android-gradle-dsl/current/com.android.build.gradle.internal.dsl.BuildType.html
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
10、调试Debug应用(未读):https://developer.android.com/studio/debug/bug-report.html
11、测试应用:单元测试、Mokey测试及其他(未读):https://developer.android.com/studio/test/monkeyrunner/MonkeyDevice.html
12、分析应用:内存分析、性能分析、视图等等(未读):https://developer.android.com/studio/profile/index.html
13、发布应用:签署应用、版本控制等:https://developer.android.com/studio/publish/versioning.html
14、命令行工具: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