Skip to content
This repository was archived by the owner on Mar 16, 2019. It is now read-only.

Android build failed : contentLength() is already defined in class RNFetchBlobBody #100

Closed
ghost opened this issue Aug 24, 2016 · 5 comments

Comments

@ghost
Copy link

ghost commented Aug 24, 2016

/Users/herve76/Desktop/Fishii/node_modules/react-native-fetch-blob/android/src/main/java/com/RNFetchBlob/RNFetchBlobBody.java:107: error: method contentLength() is already defined in class RNFetchBlobBody
public long contentLength() {
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error
:react-native-fetch-blob:compileReleaseJavaWithJavac FAILED

@wkh237
Copy link
Owner

wkh237 commented Aug 24, 2016

Could you tell me what's the version of the library?

@ghost
Copy link
Author

ghost commented Aug 24, 2016

"react-native": "^0.31.0",
"react-native-fetch-blob": "^0.9.2",

@wkh237
Copy link
Owner

wkh237 commented Aug 24, 2016

Try 0.9.3 that should be fixed : o

@ghost
Copy link
Author

ghost commented Aug 24, 2016

I had to removed the duplicated lines to solve the build issue. but the android version is still not working

@wkh237
Copy link
Owner

wkh237 commented Aug 25, 2016

Hi @herve1976 , what's the RN version of you app ? I've tested 0.9.3 on many environments (0.25~0.31) and I couldn't reproduce this error. I'd like to confirm if we already fixed this, I suppose this has been fixed in #98 . Please try reinstall the package

$ rnpm uninstall react-native-fetch-blob
$ rnpm install react-native-fetch-blob

Thanks !

@wkh237 wkh237 closed this as completed Sep 8, 2016
julian-becker pushed a commit to julian-becker/react-native-fetch-blob that referenced this issue Mar 30, 2022
* Media store support

fixes wkh237#95
fixes wkh237#62
fixes wkh237#100
fixes wkh237#91
Merge remote-tracking branch 'origin/develop'
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant