Android 开发常用命令

ADB

标题 命令
停止应用 adb shell am force-stop com.wissen.mapa
启动应用 adb shell am start com.wissen.mapa/.activity.LauncherActivity
安装应用 adb install d:\filename.apk
卸载应用 adb uninstall com.wissen.mapa

其它

标题 Windows命令 Linux命令
编译Release包 gradlew assembleRelease ./gradlew assembleRelease
文件开头几行   head -n 20  filename.log
文件最后几行   tail -n 20 filename.log
中间几行   sed -n '100,110p' filename.log
内容搜索   grep "content" filename.log
     

猜你喜欢

转载自blog.csdn.net/wyl530274554/article/details/104875118