rn-fetch-blob icon indicating copy to clipboard operation
rn-fetch-blob copied to clipboard

error: package com.RNFetchBlob does not exist

Open isaaclem opened this issue 6 years ago • 3 comments

  • 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.

isaaclem avatar Aug 27 '18 02:08 isaaclem

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')

xiaonull avatar Oct 16 '18 02:10 xiaonull

copy the link and open in new tab: https://github.com/wkh237/react-native-fetch-blob/issues/77

xiaonull avatar Oct 16 '18 02:10 xiaonull

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.

hnicholls-rbi avatar Nov 29 '23 21:11 hnicholls-rbi