java.io.FileNotFoundException

/jacoco.exec: open failed: EROFS (Read-only file system)

Samebug tips1

Check if android.permission.WRITE_EXTERNAL_STORAGE is in AndroidManifest.xml. Also, add checks in your code to see if the storage is available to write before trying to write. And last: create a folder to put your files inside.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web313

  • Stack trace

    • java.io.FileNotFoundException: /jacoco.exec: open failed: EROFS (Read-only file system) at libcore.io.IoBridge.open(IoBridge.java:409) at java.io.FileOutputStream.<init>(FileOutputStream.java:88) at org.jacoco.agent.rt.internal_14f7ee5.output.FileOutput.openFile(FileOutput.java:67) at org.jacoco.agent.rt.internal_14f7ee5.output.FileOutput.startup(FileOutput.java:49) at org.jacoco.agent.rt.internal_14f7ee5.Agent.startup(Agent.java:122) at org.jacoco.agent.rt.internal_14f7ee5.Agent.getInstance(Agent.java:50) at org.jacoco.agent.rt.internal_14f7ee5.Offline.<clinit>(Offline.java:31) at org.gearvrf.DefaultGVRTestActivity.$jacocoInit(DefaultGVRTestActivity.java) at org.gearvrf.DefaultGVRTestActivity.<clinit>(DefaultGVRTestActivity.java) at org.gearvrf.ActivityInstrumentationGVRf.setUp(ActivityInstrumentationGVRf.java:35) at junit.framework.TestCase.runBare(TestCase.java:132) at junit.framework.TestResult$1.protect(TestResult.java:115) at junit.framework.TestResult.runProtected(TestResult.java:133) at junit.framework.TestResult.run(TestResult.java:118) at junit.framework.TestCase.run(TestCase.java:124) at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:191) at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:176) at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:554) at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1729) Caused by: libcore.io.ErrnoException: open failed: EROFS (Read-only file system) at libcore.io.Posix.open(Native Method) at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110) at libcore.io.IoBridge.open(IoBridge.java:393) ... 18 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Indri YunitaIndri Yunita
    4 times, last one
    filipebatistafilipebatista
    8 times, last one
    RajeshRajesh
    Once,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    43 more bugmates