3 回答
TA贡献1812条经验 获得超5个赞
您可以使用ant在命令行上进行构建。请参阅本指南。
然后,可以adb在命令行上使用进行安装。
adb install -r MyApp.apk
该-r标志将替换现有应用程序。
TA贡献1828条经验 获得超3个赞
使用Android调试桥命令行工具,adb例如:adb install filename.apk。
一个很好的参考adb是在这里
install [options] <PATH> Installs a package (specified by <PATH>) to the system.
Options:
-l: Install the package with forward lock.
-r: Reinstall an exisiting app, keeping its data.
-t: Allow test APKs to be installed.
-i <INSTALLER_PACKAGE_NAME>: Specify the installer package name.
-s: Install package on the shared mass storage (such as sdcard).
-f: Install package on the internal system memory.
-d: Allow version code downgrade.
uninstall [options] <PACKAGE> Removes a package from the system.
Options:
-k: Keep the data and cache directories around after package removal.
- 3 回答
- 0 关注
- 893 浏览
添加回答
举报