android.os.StrictMode$StrictModeDiskWriteViolation: policy=151 violation=1

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

Solutions on the web

via Appcelerator JIRA by Wilson Luu, 1 year ago
policy=151 violation=1
via Appcelerator JIRA by Wilson Luu, 1 year ago
policy=151 violation=1
via Stack Overflow by jlindenbaum
, 2 years ago
policy=151 violation=1
via Stack Overflow by Joyson
, 2 years ago
policy=151 violation=1
android.os.StrictMode$StrictModeDiskWriteViolation: policy=151 violation=1
at libcore.io.BlockGuardOs.write(BlockGuardOs.java:178)
at libcore.io.IoBridge.write(IoBridge.java:447)
at java.io.FileOutputStream.write(FileOutputStream.java:187)
at com.android.internal.util.FastXmlSerializer.flushBytes(FastXmlSerializer.java:212)
at com.android.internal.util.FastXmlSerializer.flush(FastXmlSerializer.java:233)
at com.android.server.AppWidgetService.writeStateToFileLocked(AppWidgetService.java:1240)
at com.android.server.AppWidgetService.saveStateLocked(AppWidgetService.java:1182)
at com.android.server.AppWidgetService$2.onReceive(AppWidgetService.java:1463)
at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:728)
at android.os.Handler.handleCallback(Handler.java:605)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)

Users with the same issue

Once, 2 months ago
Once, 3 months ago
85 times, 3 months ago
Once, 3 months ago
2 times, 3 months ago

Write tip

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