standalone app got error: Location isn't readable while FileSystem.getInfoAsync.

I want to load asset and getting information to copy with FileSystem in standalone app in offline.
so I did following:
Asset.loadAsync(require(FilePath))
.then(()=>FileSystem.getInfoAsync(Asset.fromModule(require(FilePath)).localUri)
).then(({exist, uri}) => { … });

I am getting error message like follow:
Location ‘asset:///asset_6a8f644332ca42dcae8c8527bf66bc01.db’ isn’t readable.

I added my asset file extension packagerOpts in my app.json, and I checked the file in built apk file.

“packagerOpts”: {
“assetExts”: [“db”, “png”, “ttf”]
},

I need help to find out what the cause of this problem and how to solve this.

thank you.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.