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

在Android 模拟器上安装和卸载APK包的方法,需要的朋友可以参考一下

模拟器(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

以上就是在Android 模拟器上安装和卸载APK包的方法的详细内容,更多请关注0133技术站其它相关文章!

赞(0) 打赏
未经允许不得转载:0133技术站首页 » 移动