java.lang.IllegalStateException: Unable to create new file: /android_asset/Resources/sdcard/dcim/Camera/tia-1548357546.jpg

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 Thomas Huelbert, 1 year ago
Unable to create new file: /android_asset/Resources/sdcard/dcim/Camera/tia-1548357546.jpg
via Appcelerator JIRA by Thomas Huelbert, 1 year ago
Unable to create new file: /android_asset/Resources/sdcard/dcim/Camera/tia-1548357546.jpg
via Appcelerator JIRA by Thomas Huelbert, 1 year ago
Unable to create new file: /android_asset/Resources/sdcard/dcim/Camera/tia820582356.jpg
via Appcelerator JIRA by Thomas Huelbert, 1 year ago
Unable to create new file: /android_asset/Resources/sdcard/dcim/Camera/tia820582356.jpg
via GitHub by mattdh666
, 9 months ago
Unable to create new file: /file:/storage/emulated/0/DCIM/Camera/1406844802836.jpg
java.lang.IllegalStateException: Unable to create new file: /android_asset/Resources/sdcard/dcim/Camera/tia-1548357546.jpg
at com.android.providers.media.MediaProvider.ensureFile(MediaProvider.java:1693)
at com.android.providers.media.MediaProvider.insertInternal(MediaProvider.java:1803)
at com.android.providers.media.MediaProvider.insert(MediaProvider.java:1734)
at android.content.ContentProvider$Transport.insert(ContentProvider.java:198)
at android.media.MediaScanner$MyMediaScannerClient.endFile(MediaScanner.java:774)
at android.media.MediaScanner$MyMediaScannerClient.doScanFile(MediaScanner.java:522)
at android.media.MediaScanner.scanSingleFile(MediaScanner.java:1219)
at com.android.providers.media.MediaScannerService.scanFile(MediaScannerService.java:200)
at com.android.providers.media.MediaScannerService.access$100(MediaScannerService.java:48)
at com.android.providers.media.MediaScannerService$ServiceHandler.handleMessage(MediaScannerService.java:244)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at com.android.providers.media.MediaScannerService.run(MediaScannerService.java:188)
at java.lang.Thread.run(Thread.java:1019)

Users with the same issue

You are the first who have seen this exception.

Write tip

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