Skip to content

Android getColumnIndex issue #779

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
thanhhuan1990 opened this issue May 9, 2022 · 3 comments · May be fixed by #791
Open

Android getColumnIndex issue #779

thanhhuan1990 opened this issue May 9, 2022 · 3 comments · May be fixed by #791

Comments

@thanhhuan1990
Copy link

  • React Native version: 0.64.0
  • rn-fetch-blob version: 0.12.0

My application is failed to build for android because of an issue in java code:

RNFetchBlobReq.java:741: Error: Value must be ≥ 0 [Range]
int statusCode = c.getInt(c.getColumnIndex(DownloadManager.COLUMN_STATUS));

Please help to recheck, it should be getColumnIndexOrThrow
Thanks

@imbarwinata
Copy link

Have same issue when build apk, changed it directly in node_modules is a temporary solution and it works:

Replace getColumnIndex with getColumnIndexOrThrow

@dobrin-scaleforce
Copy link

@imbarwinata thank you for your referred link! I had to update my patch-package package so that I could create a patch for rn-fetch-blob for RN 62.0. Cheers!

@meng7171
Copy link

meng7171 commented Oct 9, 2024

Have same issue when build apk, changed it directly in node_modules is a temporary solution and it works:

Replace getColumnIndex with getColumnIndexOrThrow

good, solved my problems using THIS.
TQ.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants