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

Unhandled Exception: Invalid argument(s) #20

Open
muss01 opened this issue Jun 24, 2019 · 2 comments
Open

Unhandled Exception: Invalid argument(s) #20

muss01 opened this issue Jun 24, 2019 · 2 comments

Comments

@muss01
Copy link

muss01 commented Jun 24, 2019

[ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: Invalid argument(s) E/flutter (18097): #0 _StringBase.+ (dart:core-patch/string_patch.dart:260:57) E/flutter (18097): #1 ImagePickerSaver.saveFile (package:image_picker_saver/image_picker_saver.dart:85:34)

Am using the permission storage in AndroidManifest.xml

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>

But the application doesn't ask me for the permission

@pasha009
Copy link

I got similar Unhandled Exception in some unrelated project. It turned out that it was because i was trying to concatenate a string and null object.
Just sharing my reason of having this error...

@nandin-borjigin
Copy link

nandin-borjigin commented Sep 24, 2019

I don't know why the repo author commented this line out.

It causes channel.InvokeMethod on dart side to return null and concatenating a string with a null value would throw an 'Invalid arugment(s)' exception.

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

3 participants