avatar
童琦杰
Nov 11, 2017

Android开发纪要

adb文件位置: AndroidSdk\platform-tools\adb.exe

模拟进程被杀死命令: adb shell am kill package-name

截图并保存到PC: adb shell /system/bin/screencap -p /sdcard/screenshot.png & adb pull /sdcard/screenshot.png "this/is/target/folder"

模拟屏幕按压: adb shell input swipe 100 100 120 120 1000

打开Android Device Monitor: AndroidSdk\tools\monitor

Java.io.FileNotFoundException: This file can not be opened as a file descriptor; it is probably compressed

build.grade
android {
    ...
    aaptOptions {
        noCompress "tflite"  //表示不让aapt压缩的文件后缀
    }
    ...
}
© 2015-2022 tongqijie.com 版权所有沪ICP备17000682号