3 回答

TA貢獻(xiàn)1812條經(jīng)驗(yàn) 獲得超5個(gè)贊
您可以使用ant在命令行上進(jìn)行構(gòu)建。請(qǐng)參閱本指南。
然后,可以adb在命令行上使用進(jìn)行安裝。
adb install -r MyApp.apk
該-r標(biāo)志將替換現(xiàn)有應(yīng)用程序。

TA貢獻(xiàn)1828條經(jīng)驗(yàn) 獲得超3個(gè)贊
使用Android調(diào)試橋命令行工具,adb例如:adb install filename.apk。
一個(gè)很好的參考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 關(guān)注
- 944 瀏覽
添加回答
舉報(bào)