这个脚本有什么问题?
# Imports the monkeyrunner modules used by this program
from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice
# Connects to the current device, returning a MonkeyDevice object
device = MonkeyRunner.waitForConnection()
#Uninstall package
device.removePackage ('MyApp.apk')
我也尝试过使用应用程序的路径但没有用。
答案 0 :(得分:3)
试试这个:
device.removePackage 'com.mypackage.myapp'