一、配置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