joltup / rn-fetch-blob

A project committed to making file access and data transfer easier, efficient for React Native developers.
MIT License
2.8k stars 770 forks source link

Android getColumnIndex issue #779

Open thanhhuan1990 opened 2 years ago

thanhhuan1990 commented 2 years ago

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 commented 1 year ago

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 commented 1 year ago

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