Problem description
When using monkey to debug Android programs, the shell prompts an error, and the problem is as follows
first, I use
adb shell
Enter the device shell, and then use the following command to execute the monkey test
command
command
monkey -p com.baidu.BaiduMap -v -v -v --ignore-crashes --throttle 200 --pct-touch 50 5 1>D:\\info.txt 2>D:\error.txt
tips
/system/bin/sh: can't create D:\info.txt: Read-only file system
Analysis and correction
Reason: the reason why the file cannot be written is that the device shell only has read and write permissions on the device, but not on the PC. Therefore, you should not execute monkey after entering the ADB shell, but exit the shell first
exit
It is then executed on the command line
adb shell monkey -p com.baidu.BaiduMap -v -v -v --ignore-crashes --throttle 200 --pct-touch 50 5 1>D:\\info.txt 2>D:\error.txt
Read More:
- [Solved] MYSQLD: Can‘t create directory ‘/usr/local/mysql/data/’(Errcode:2 -No such file or directory)
- android remount of /system failed: Read-only file system [How to Solve]
- NVM ERROR open \settings.txt: The system cannot find the file specified
- ADB ota Error: adb: failed to read command: No error
- [Solved] kubeflow pipeline visualization component Error: WARNING: Running pip as the ‘root’ user can result in broken permissions and conflicting behaviour with the system package manager…
- [Solve] DAAS Pubulish Error: Failed read-only file system
- Cmake Compile opencv error: The system is: Windows – 10.0.19042 – AMD64 (Log File)
- [Solved] npm Error: Can‘t find Python executable “python“, you can set the PYTHON env variable.
- log4j Error: Please initialize the log4j system properly [How to Solve]
- [Solved] ERROR: Could not open requirements file: [Errno 2] No such file or directory : ‘requirments.txt‘
- Monkey error: error: A RuntimeException occurred [How to Solve]
- How to Solve Error: could not read ok from ADB Server.failed to start daemon error: cannot connect to daemon
- How to Solve Angular Error: error NG8002: Can‘t bind to ‘ngModel‘ since it isn‘t a known property of ‘input‘.
- MAC-XXL_JOB Error: Failed to create parent directories for [/data/applogs/xxl-job/xxl-job-admin.log
- [Solved] Yolox Run Error: can‘t find starting number
- Sqoop Error: Can‘t parse input data: ‘\N‘ [How to Solve]
- [Solved] AS Warning: String literal in setText can not be translated. Use Android resources instead.
- [Solved] redis Error: Can‘t save in background fork Cannot allocate memory
- [Solved] Error: Can‘t locate revision identified by ‘xxx‘
- [Solved] SHELL Run Error: “-BASH: ./TEST.SH: /BIN/BASH^M: BAD INTERPRETER: NO SUCH FILE OR DIRECTORY”