android-perf-testing icon indicating copy to clipboard operation
android-perf-testing copied to clipboard

Path to monkeyrunner is incorrect

Open IgorGanapolsky opened this issue 8 years ago • 2 comments

Hello, your codelab states:

${ANDROID_HOME}/tools/monkeyrunner ./run_perf_tests.py ./ <INSERT_ID>

However, that is incorrect, as the monkeyrunner executable is located in ${ANDROID_HOME}/tools/bin/monkeyrunner

IgorGanapolsky avatar Mar 09 '17 21:03 IgorGanapolsky

Thanks @IgorGanapolsky for posting this!

Initially I followed the Step 7 instructions and used: ${ANDROID_HOME}/tools/monkeyrunner ./run_perf_tests.py ./ <INSERT_ID>

which resulted in the following error: bash: /Users/hlupico/Library/Android/sdk/tools/monkeyrunner: No such file or directory

Using ${ANDROID_HOME}/tools/bin/monkeyrunner instead resolved my issue.

hlupico avatar Nov 15 '17 20:11 hlupico

Also important to note that folks with this issue will also have to update Line 69 of RunLocalPerfTestsTask to be:

def monkeyPath = Paths.get(sdkDir, "tools/bin", "monkeyrunner" + monkeyExt).toAbsolutePath().toString()

hlupico avatar Nov 15 '17 21:11 hlupico