win + R 输入cmd , 打开命令行
adb install [apkpath] 给定apk文件的路径,执行即可(apk拖进来就可以)
adb uninstall packagename uninstall操作需要给出应用的包名
如果出现这个问题 INSTALL_FAILED_UPDATE_INCOMPATIBLE
先卸载一次adb uninstall packagename
再安装~
安装app命令:
app installation:
install [-lrtsdg] PACKAGE
install-multiple [-lrtsdpg] PACKAGE...
push package(s) to the device and install them
-l: forward lock application
-r: replace existing application
-t: allow test packages
-s: install application on sdcard
-d: allow version code downgrade (debuggable packages only)
-p: partial application install (install-multiple only)
-g: grant all runtime permissions
卸载app命令
uninstall [-k] PACKAGE
remove this app package from the device
'-k': keep the data and cache directories
网友评论