将日志重定向导出时提示:cannot create D:xx.txt: read-only file system

xiaoxiao2021-02-27  161

跑monkey的时候或者想抓程序log导出时,有时会提示:cannot create D:monkeytest.txt: read-only file system 为什么有时候可以有时候不可以? 后来发现跟使用使用习惯不一样,一会是先进入adb shell 再用命令,一会是直接命令进入。 进入adb shell后再用命令就会失败~ 正确方法:退出shell或者执行命令时先不要进shell C:\Documents and Settings\Administrator>adb shell monkey -p 包名  -v 300  >e:\text.txt 进入adb shell后就相当于进入linux的root下面,没有权限在里面创建文件~
转载请注明原文地址: https://www.6miu.com/read-11691.html

最新回复(0)