close

[Solved] FileNotFoundException open failed: EPERM (Operation not permitted)

Hello Guys, How are you all? Hope You all Are Fine. Today I am trying to save image on external storage But I am facing following error FileNotFoundException open failed: EPERM (Operation not permitted) in Java. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How FileNotFoundException open failed: EPERM (Operation not permitted) Error Occurs ?

I am trying to save image on external storage But I am facing following error.

java.io.FileNotFoundException: /storage/emulated/0/Caramel/78451236589.jpg: open failed: EPERM (Operation not permitted)

How To Solve FileNotFoundException open failed: EPERM (Operation not permitted) Error ?

  1. How To Solve FileNotFoundException open failed: EPERM (Operation not permitted) Error ?

    To Solve FileNotFoundException open failed: EPERM (Operation not permitted) Error You just need to Add the following attribute in your app’s Manifest.xml file inside the application tag: android:requestLegacyExternalStorage=”true” Now, Uninstall and reinstall app and your error will be solved.

  2. FileNotFoundException open failed: EPERM (Operation not permitted)

    To Solve FileNotFoundException open failed: EPERM (Operation not permitted) Error You just need to Add the following attribute in your app’s Manifest.xml file inside the application tag: android:requestLegacyExternalStorage=”true” Now, Uninstall and reinstall app and your error will be solved.

Solution 1: add android:requestLegacyExternalStorage="true"

You just need to Add the following attribute in your app’s Manifest.xml file inside the application tag:

android:requestLegacyExternalStorage="true"

And Your Manifest.xml file look like.

<application
...
        android:supportsRtl="true"
        android:theme="@style/AppTheme"
        android:requestLegacyExternalStorage="true">
...
</application>

Now, Uninstall and reinstall app and your error will be solved.

Summary

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?

Also, Read

Leave a Comment