Android - 常用 Command
ADB
- 輸出裝置 logcatbash
adb -d logcat > log.txt
Test
Unit Test
bash./gradlew test
Instrumented Test
bash./gradlew connectedAndroidTest
APK
打包 Debug APK
bash./gradlew assembleDebug
打包 Release APK
bash./gradlew assembleRelease
分析 APK 使用的 method 數量
bashdexcount ./app/build/outputs/apk/app-debug.apk