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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

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.

Solutions on the web

via GitHub by NolaDonato
, 1 year ago
/jacoco.exec: open failed: EROFS (Read-only file system)
via GitHub by majaDeSmart
, 1 year ago
*{file path - used saveInAppExternalFilesDir() configuration with custom folder name}*: open failed: ENOENT (No such file or directory)
via Stack Overflow by Asdemuertes
, 9 months ago
/storage/emulated/0/paco.png: open failed: EACCES (Permission denied)
via Stack Overflow by Bhupesh
, 1 year ago
/storage/emulated/0/Student Portal/proposal-1.docx: open failed: EISDIR (Is a directory)
via Stack Overflow by Ofek Ron
, 6 months ago
/storage/sdcard1/DCIM/thai2/IMG-20150702-WA0001.jpg: open failed: EACCES (Permission denied)
via Stack Overflow by Vlad Kramarenko
, 1 year ago
/storage/emulated/0/scetchpad/pizza.png: open failed: ENOENT (No such file or directory)
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)
at java.io.FileOutputStream.(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.(Offline.java:31)
at org.gearvrf.DefaultGVRTestActivity.$jacocoInit(DefaultGVRTestActivity.java)
at org.gearvrf.DefaultGVRTestActivity.(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)

Users with the same issue

13 times, 3 months ago
13 times, 4 months ago
Once, 6 months ago
2 times, 7 months ago
95 times, 7 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.