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

Android getColumnIndex issue

Open thanhhuan1990 opened this issue 3 years ago • 3 comments

  • 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

thanhhuan1990 avatar May 09 '22 16:05 thanhhuan1990

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

Replace getColumnIndex with getColumnIndexOrThrow

imbarwinata avatar Oct 25 '22 12:10 imbarwinata

@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!

dobrin-scaleforce avatar Dec 20 '22 10:12 dobrin-scaleforce

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.

meng7171 avatar Oct 09 '24 07:10 meng7171