AndroidStudio 命令行小结

来源:互联网 发布:编程断开usb连接 编辑:程序博客网 时间:2024/06/04 19:08
gradlew build clean --info --> jzl.log 或者 gradlew build clean --info : 查看gradle启动信息
adb shell dumpsys actvity : 用来查看Launcher启动MainActivity信息
adb logcat -s 标签名    在命令行中查看LOG信息
adb shell kill [PID]       //杀死进程第一种方法
adb shell am force-stop 包名    // 强制杀死进程第二种方法
adb shell ps       //查看所有进程列表,Process Status  
adb shell ps|grep <package_name>    //查看package_name程序进程  
adb shell ps -x [PID]      //查看PID进程状态  
adb shell top|grep <package_name> //实时监听程序进程的变化  
adb shell cat /proc/cpuinfo  查看手机CPU信息



keytool -v -list - keystore D:\WorkSpace\as\hrmp\hrmp.jks      //查看签名
-list:列出密钥库中的条目。
-keystore:数字证书位置。


gradlew tasks   //查看所有运行的task


gradlew xxx --stac

gradlew compileDebug --stac
gradlew compileDebug --debug
gradlew compileDebug --info

gradlew compileDebugJavaWithJavac



android {
    lintOptions {
        abortOnError false
    }
}