android.os.StrictMode$StrictModeDiskWriteViolation: policy=31 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 tutsplus.com by Unknown author, 8 months ago
via Stack Overflow by Kern
, 2 years ago
policy=17 violation=1
via hatenablog.com by Unknown author, 8 months ago
android.os.StrictMode$StrictModeDiskWriteViolation: policy=31 violation=1
at libcore.io.BlockGuardOs.ftruncate(BlockGuardOs.java:101)
at java.io.RandomAccessFile.setLength(RandomAccessFile.java:626)
at com.intel.android.gallery3d.common.BlobCache.setActiveVariables(BlobCache.java:286)
at com.intel.android.gallery3d.common.BlobCache.loadIndex(BlobCache.java:275)
at com.intel.android.gallery3d.common.BlobCache.(BlobCache.java:144)
at com.intel.android.gallery3d.util.CacheManager.getCache(CacheManager.java:56)
at com.intel.android.gallery3d.app.Bookmarker.getBookmark(Bookmarker.java:64)
at com.intel.android.gallery3d.app.MoviePlayer.initPlayer(MoviePlayer.java:281)
at com.intel.android.gallery3d.app.MoviePlayer.(MoviePlayer.java:142)
at com.intel.android.gallery3d.app.MovieActivity$1.(MovieActivity.java:91)
at com.intel.android.gallery3d.app.MovieActivity.onCreate(MovieActivity.java:90)
at android.app.Activity.performCreate(Activity.java:5231)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2188)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2273)
at android.app.ActivityThread.access$800(ActivityThread.java:138)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1236)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:149)
at android.app.ActivityThread.main(ActivityThread.java:5045)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:794)

Users with the same issue

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

Write tip

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