我试图让 android ui 猴子第一次运行并且遇到了一些问题。
我已经运行adb shell monkey -v 100
它工作正常,但显然只在系统 UI 上而不是在我自己的应用程序上。
然后我尝试
adb shell monkey -p com.rbennett485.dawnoftheveg -v 100
并获得输出
:Monkey: seed=1406692871132 count=100
:AllowPackage: com.rbennett485.dawnoftheveg
:IncludeCategory: android.intent.category.LAUNCHER
:IncludeCategory: android.intent.category.MONKEY
** No activities found to run, monkey aborted.
我的清单的相关部分是
<activity
android:name="com.rbennett485.dawnoftheveg.DawnOfTheVeg"
android:label="@string/app_name"
android:screenOrientation="landscape"
android:configChanges="keyboard|keyboardHidden|orientation">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.MONKEY" />
</intent-filter>
</activity>
有任何想法吗?我知道以前有人问过很多关于这个错误的问题,但这似乎主要是因为没有使用完整的包名——我在这里使用了正确的包名吗?