·您现在的位置: 云翼网络 >> 文章中心 >> 网站建设 >> app软件开发 >> Android开发 >> 在Android 模拟器上安装和卸载APK包的方法

在Android 模拟器上安装和卸载APK包的方法

作者:佚名      Android开发编辑:admin      更新时间:2022-07-23

模拟器(emulator.exe)

可以在 Android SDK 的安装目录下的 tools 文件夹找到运行文件(F:GPhoneandroid-sdk-windows-1.0_r1 ools),双击运行模拟器。

安装 APK 包

adb install [-l] [-r]

- push this package file to the device and install it
<'-l' means forward-lock the app>
<'-r' means reinstall the app, keeping its data>

例如:adb install F:GphoneMyCodeHelloAndroidinHelloAndroid.apk

查看安装位置

adb shell

#cd data

#cd app

#ls

显示已经安装的 APK 包

com.android.hello.apk

卸载 APK 包

adb shell

#cd data

#cd app

#ls

# rm com.android.hello.apk