0

我正在尝试使用Monkey测试我的 Android 应用程序。他们说使用这个命令,

$ adb shell monkey -p your.package.name -v 500

在我的应用程序中,我的包名称为 travelceylon\client,因此如果我将命令指定为:

adb -e shell monkey -p travelceylon\client -v 1000

...它会显示如下错误:

:Monkey: seed=0 count=1000
:AllowPackage: travelceylonclient
:IncludeCategory: android.intent.category.LAUNCHER
:IncludeCategory: android.intent.category.MONKEY
** No activities found to run, monkey aborted.

那么我在这里做错了什么?

4

1 回答 1

2

您应该用点分隔包名称的各个部分:

adb -e shell monkey -p travelceylon.client -v 1000

正如您在错误中看到的那样,它省略了\包名称中的 :

AllowPackage: travelceylonclient :IncludeCategory: 
                          ^ ???
于 2012-03-20T20:07:32.320 回答