calabash-android - 安装 APK 时出错 - 远程只读文件系统

calabash-android - error installing APK - remote Read-only file system

我正在尝试 运行 calabash-android 测试我的 Android APK,在一台机器上用一个模拟器测试 运行 没问题,但是在另一台机器上使用相同的代码但不同的模拟器我得到一个错误。

以下是我在 .sh 文件中 运行 的命令:

rm -rf screenshot*
rm -rf test_servers
bundle exec calabash-android build "jenkins.apk"
bundle exec calabash-android run "jenkins.apk" -p android -v

这是错误日志:

2017-04-28 14:03:36 - Installing: test_servers/0124c485b6b2589f08b4f8d4e6c01c05_0.9.0.apk 2017-04-28 14:03:36 - [ 10%] /data/local/tmp/0124c485b6b2589f08b4f8d4e6c01c05_0.9.0.apk [ 21%] /data/local/tmp/0124c485b6b2589f08b4f8d4e6c01c05_0.9.0.apk [ 32%] /data/local/tmp/0124c485b6b2589f08b4f8d4e6c01c05_0.9.0.apk [ 43%] /data/local/tmp/0124c485b6b2589f08b4f8d4e6c01c05_0.9.0.apk [ 53%] /data/local/tmp/0124c485b6b2589f08b4f8d4e6c01c05_0.9.0.apk [ 64%] /data/local/tmp/0124c485b6b2589f08b4f8d4e6c01c05_0.9.0.apk [ 75%] /data/local/tmp/0124c485b6b2589f08b4f8d4e6c01c05_0.9.0.apk [ 86%] /data/local/tmp/0124c485b6b2589f08b4f8d4e6c01c05_0.9.0.apk [ 96%] /data/local/tmp/0124c485b6b2589f08b4f8d4e6c01c05_0.9.0.apk [100%] /data/local/tmp/0124c485b6b2589f08b4f8d4e6c01c05_0.9.0.apk adb: error: failed to copy 'test_servers/0124c485b6b2589f08b4f8d4e6c01c05_0.9.0.apk' to '/data/local/tmp/0124c485b6b2589f08b4f8d4e6c01c05_0.9.0.apk': remote Read-only file system test_servers/0124c485b6b2589f08b4f8d4e6c01c05_0.9.0.apk: 0 files pushed. 11.6 MB/s (609369 bytes in 0.050s) 2017-04-28 14:03:40 - java -jar "/usr/local/lib/ruby/gems/2.4.0/gems/calabash-android-0.9.0/lib/calabash-android/lib/screenshotTaker.jar" emulator-5744 "screenshot_0.png" 2017-04-28 14:03:41 - It looks like your app is no longer running. It could be because of a crash or because your test script shut it down. 2017-04-28 14:03:41 - Server not responding. Moving on. Build step 'Execute shell' marked build as failure

谁能解释为什么 apk 不能安装在这个模拟器上,为什么它有一个“远程只读文件系统?

编辑:我尝试添加以下内容:

adb remount

但我仍然得到同样的错误。

你能试试吗

adb shell
su
mount -o remount,rw /system

让我知道那是做什么的? Credit