Skip to content

Android Error after installing rn-fetch-blob #570

@luccadumas

Description

@luccadumas

react-native-cli: 2.0.1
react-native: 0.61.5
rn-fetch-blob: 0.12.0

On IOS, lib worked fine, but on Android this error is coming up:

I'd appreciate if you could help me.

image

`> Task :rn-fetch-blob:compileReleaseJavaWithJavac FAILED
/Users/etros/Documents/workspace/sp-react-native/node_modules/rn-fetch-blob/android/src/main/java/com/RNFetchBlob/RNFetchBlobReq.java:601: error: unreported exception IOException; must be caught or declared to be thrown
callback.invoke("Unexpected FileStorage response file: " + responseBody.string(), null);
^
1 error

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':rn-fetch-blob:compileReleaseJavaWithJavac'.

Compilation failed; see the compiler error output for details.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 3m 44s
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions