rn-fetch-blob
rn-fetch-blob copied to clipboard
error: package com.RNFetchBlob does not exist
- please provide the version of installed library and RN project.
"rn-fetch-blob": "^0.10.12"
"react-native": "0.56.0"
Unable to build android app, working fine on iOS
MainApplication.java:8: error: package com.RNFetchBlob does not exist
import com.RNFetchBlob.RNFetchBlobPackage;
^
/Users/xxx/projectName/android/app/src/main/java/com/packageName/MainApplication.java:34: error: cannot find symbol
new RNFetchBlobPackage(),
^
symbol: class RNFetchBlobPackage
2 errors
:app:compileDebugJavaWithJavac FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
https://github.com/wkh237/react-native-fetch-blob/issues/77 The link can help you. but in rn-fetch-blob, you should add compile project(':rn-fetch-blob')
copy the link and open in new tab: https://github.com/wkh237/react-native-fetch-blob/issues/77
For this package you need to add this:
implementation project(':rn-fetch-blob');
Notice compile
is replaced with implementation
.
The full instructions for manually linking the package can be found here.