Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Crash in some devices Caused by: java.lang.IllegalArgumentException: #103

Closed
thesmalleyes opened this issue Jul 2, 2019 · 3 comments
Closed

Comments

@thesmalleyes
Copy link

I have so many issues with this error. but i don't understand what's wrong?
The output is:
Caused by: java.lang.IllegalArgumentException:
at android.database.AbstractCursor.getColumnIndexOrThrow (AbstractCursor.java:333)
at android.database.CursorWrapper.getColumnIndexOrThrow (CursorWrapper.java:87)
at com.mr.flutter.plugin.filepicker.FileUtils.getDataColumn (FileUtils.java:132)
at com.mr.flutter.plugin.filepicker.FileUtils.getForApi19 (FileUtils.java:113)
at com.mr.flutter.plugin.filepicker.FileUtils.getPath (FileUtils.java:29)
at com.mr.flutter.plugin.filepicker.FilePickerPlugin$1.onActivityResult (FilePickerPlugin.java:81)
at io.flutter.app.FlutterPluginRegistry.onActivityResult (FlutterPluginRegistry.java:204)
at io.flutter.app.FlutterActivityDelegate.onActivityResult (FlutterActivityDelegate.java:132)
at io.flutter.app.FlutterActivity.onActivityResult (FlutterActivity.java:142)
at android.app.Activity.dispatchActivityResult (Activity.java:7252)
at android.app.ActivityThread.deliverResults (ActivityThread.java:4335)

@miguelpruivo
Copy link
Owner

Hi @bayuramadeza, could you please also add the output of your flutter doctor -v as well as describing what’s the step to replicate the issue?

Thank you.

@thesmalleyes
Copy link
Author

thesmalleyes commented Jul 5, 2019

I don't know what's the step to replicate it, but it happened in specific devices. Cause i don;t have the device
Screen Shot 2019-07-05 at 09 58 32

@miguelpruivo
Copy link
Owner

@bayuramadeza looks like it happens only in OPPO devices with API 24. Maybe due to a custom rom that is using a custom file explorer and handling the paths by itself.

Since it’s happening only with one brand and API and you can’t also give the steps to replicate (hopefully in some emulator) this is quite hard to debug as I don’t have the model as well and I’m afraid I can’t emulate it as well, I’m closing this.

But feel free to reopen if you’re able to provide with more details. I’d certainly be glad to help you.

Thank you.

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

No branches or pull requests

2 participants