android-perf-testing
android-perf-testing copied to clipboard
Path to monkeyrunner is incorrect
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
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.
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()