You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 16, 2019. It is now read-only.
I get this problem while trying to link the library, simple react-native link works but it suggests:
react-native-fetch-blob_ will not automatically add Android permissions after 0.9.4 please run the following command if you want to add default permissions :
RNFB_ANDROID_PERMISSIONS=true react-native link
And when I do RNFB_ANDROID_PERMISSIONS=true react-native link it give me the following error:
RNFetchBlob checking app version ..
RNFetchBlob detected app version => 0.45
Add Android permissions => false
react-native-fetch-blob link FAILED
Could not automatically link package :TypeError: path must be a string or Buffer
at TypeError (native)
at Object.fs.readFile (fs.js:304:11)
at Object. (/Users/Sujan/Desktop/React Native/RelaxationApp/node_modules/react-native-fetch-blob/scripts/prelink.js:29:8)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:389:7)
If I run the project with simple react-native link I get : undefined is not an object (evaluating 'RNFetchBlob.DocumentDir') when the project is run
Versions:
react-native-cli: 2.0.1
react-native: 0.45.1
RNFetchBlob: 0.10.6
The text was updated successfully, but these errors were encountered:
It's like your Android project does not exists or not using a default project structure, as a result something went wrong in our prelink script, perhaps you can try to link the library manually.
This is my project structure, I don't know if its the default project structure or not, sorry for my naivety ( this is my first react native project and also my first android application ).
I did try manual installation from the wiki page but I can't seem to find the files you've mentioned in there. Even if I search for lets suppose android/app/build.gradle I get multiple files and I'm not sure which one to update, same case for settings.gradle and MainApplication.java
Again, I have very little idea about android and react native, I'm learning as I go.
Hey !
I get this problem while trying to link the library, simple react-native link works but it suggests:
react-native-fetch-blob_ will not automatically add Android permissions after 0.9.4 please run the following command if you want to add default permissions :
RNFB_ANDROID_PERMISSIONS=true react-native link
And when I do RNFB_ANDROID_PERMISSIONS=true react-native link it give me the following error:
RNFetchBlob checking app version ..
RNFetchBlob detected app version => 0.45
Add Android permissions => false
react-native-fetch-blob link FAILED
Could not automatically link package :TypeError: path must be a string or Buffer
at TypeError (native)
at Object.fs.readFile (fs.js:304:11)
at Object. (/Users/Sujan/Desktop/React Native/RelaxationApp/node_modules/react-native-fetch-blob/scripts/prelink.js:29:8)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:389:7)
If I run the project with simple react-native link I get : undefined is not an object (evaluating 'RNFetchBlob.DocumentDir') when the project is run
Versions:
react-native-cli: 2.0.1
react-native: 0.45.1
RNFetchBlob: 0.10.6
The text was updated successfully, but these errors were encountered: