everything is good but when i try to get picture from gallery using 3rd party program (es file explorer) image picker plugin get this error Unable to decode stream: java.lang.NullPointerException i tried again with many pictures ,and get the same result.
Asked
Active
Viewed 25 times
1
-
try `flutter clean` and rebuild the app – Md. Yeasin Sheikh Jul 27 '23 at 18:13
1 Answers
0
To fix the error, follow these steps:
Update all your dependencies in pubspec.yaml, including image_picker, using the command
flutter pub upgrade --major-versions
. Make sure that your Flutter SDK is also updated to the newest version 3.10.0 or above.Stop your app
Run the command flutter clean.
Run the command flutter pub get.
Run the app
If my answer helped you, please don't forget to vote ️.

Faisal Faraj
- 576
- 3
- 9