android-image-picker icon indicating copy to clipboard operation
android-image-picker copied to clipboard

Cannot bind argument at index 1 because the index is out of range. The statement has 0 parameters.

Open nisrinalya opened this issue 3 years ago • 5 comments

Hello! First of all, thank you for making this library. But just now I got this problem when I tried to implement your library:

2021-08-16 16:38:33.262 25135-25207/com.bakoelasa.bakoelasakotlintest E/AndroidRuntime: FATAL EXCEPTION: pool-2-thread-1
    Process: com.bakoelasa.bakoelasakotlintest, PID: 25135
    java.lang.IllegalArgumentException: Cannot bind argument at index 1 because the index is out of range.  The statement has 0 parameters.
        at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:172)
        at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:142)
        at android.content.ContentProviderProxy.query(ContentProviderNative.java:472)
        at android.content.ContentResolver.query(ContentResolver.java:1183)
        at com.esafirm.imagepicker.features.fileloader.DefaultImageFileLoader$ImageLoadRunnable.queryData(DefaultImageFileLoader.kt:118)
        at com.esafirm.imagepicker.features.fileloader.DefaultImageFileLoader$ImageLoadRunnable.queryData$default(DefaultImageFileLoader.kt:83)
        at com.esafirm.imagepicker.features.fileloader.DefaultImageFileLoader$ImageLoadRunnable.run(DefaultImageFileLoader.kt:206)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at java.lang.Thread.run(Thread.java:923)

The sample from library is doing fine when I try to build it, but I found this problem when I try to implement the library into my project. I don't know what to do to solve this problem because it seems like the error is from the library. I would be very happy if anyone can help me to solve this. Thank you in advance.

nisrinalya avatar Aug 16 '21 09:08 nisrinalya

I have the same issue when target android 11 sdk 30

Bluerayws2020 avatar Aug 26 '21 11:08 Bluerayws2020

I have the same issue when target android 11 sdk 30

me, too

myc185 avatar Sep 18 '21 05:09 myc185

I have solve this issue by import imagepicker module to my project using source code

myc185 avatar Sep 18 '21 08:09 myc185

@myc185, can you please provide the edited source code?

nikhilvachhani avatar Oct 08 '21 08:10 nikhilvachhani

Screen Shot 2022-04-24 at 12 02 10

Just realized I had some fixes for Android Q and it's not released yet. Can you folks try 3.0.0-beta5? Thank you

esafirm avatar Apr 24 '22 05:04 esafirm

Closing due inactivity.

esafirm avatar Oct 28 '22 00:10 esafirm