React-native-fs: Not Working with targetSDKversion 29

Created on 24 Nov 2020  路  3Comments  路  Source: itinance/react-native-fs

I use old version targetSdkVersion 28 it module RNFS.writeFile was working fine. But not long ago google support moving to level 29, The module is failing.

Most helpful comment

I try resolve issue.

In android\app\build.gradle , make these changes:

compileSdkVersion 29
targetSdkVersion 29

Even with this in my Manifest :

<manifest ... >
    <!-- This attribute is "false" by default on apps targeting Android Q. -->
    <application android:requestLegacyExternalStorage="true" ... >
     ...
    </application>
</manifest>

it will work.
I hope this fix is save to you @armilano

All 3 comments

Same here dude.The module is failing at Android 10 but I try in Android 9 ,it's work!

I try resolve issue.

In android\app\build.gradle , make these changes:

compileSdkVersion 29
targetSdkVersion 29

Even with this in my Manifest :

<manifest ... >
    <!-- This attribute is "false" by default on apps targeting Android Q. -->
    <application android:requestLegacyExternalStorage="true" ... >
     ...
    </application>
</manifest>

it will work.
I hope this fix is save to you @armilano

Trying to tie together all the related issues to the root issue: #998

Was this page helpful?
0 / 5 - 0 ratings