E/flutter ( 6675): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: MissingPluginException(No implementation found for method pickImage on channel plugins.flutter.io/image_picker)
E/flutter ( 6675): #0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:294:7)
E/flutter ( 6675): <asynchronous suspension>
E/flutter ( 6675): #1 MethodChannelImagePicker.getImageFromSource (package:image_picker_platform_interface/src/method_channel/method_channel_image_picker.dart:209:26)
E/flutter ( 6675): <asynchronous suspension>
E/flutter ( 6675): #2 _ProfilePageState.chooseImage (package:todoapp/screens/profile_screen.dart:74:20)
E/flutter ( 6675): <asynchronous suspension>
E/flutter ( 6675):
W/example.todoap( 6675): Reducing the number of considered missed Gc histogram windows from 679 to 100
W/example.todoap( 6675): Accessing hidden method Ldalvik/system/CloseGuard;->warnIfOpen()V (greylist,core-platform-api, linking, allowed)
I/AssistStructure( 6675): Flattened final assist data: 460 bytes, containing 1 windows, 3 views
E/flutter ( 6675): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: MissingPluginException(No implementation found for method pickImage on channel plugins.flutter.io/image_picker)
E/flutter ( 6675): #0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:294:7)
E/flutter ( 6675): <asynchronous suspension>
E/flutter ( 6675): #1 MethodChannelImagePicker.getImageFromSource (package:image_picker_platform_interface/src/method_channel/method_channel_image_picker.dart:209:26)
E/flutter ( 6675): <asynchronous suspension>
E/flutter ( 6675): #2 _ProfilePageState.chooseImage (package:todoapp/screens/profile_screen.dart:74:20)
E/flutter ( 6675): <asynchronous suspension>
Upload image in Edit Profile Page
CodePudding user response:
first run flutter clean
and then flutter pub get
CodePudding user response:
do this
flutter clean && flutter pub get
CodePudding user response:
Because image_picker
is not injected well
- Clean the flutter channel -
flutter clean
run in your project-level terminal - Run the flutter pub get channel -
flutter pub get
its getting your dependency in cache - Run then app