-2
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

Wai Ha Lee
  • 8,598
  • 83
  • 57
  • 92
  • https://stackoverflow.com/questions/57163091/no-implementation-found-for-method-pickimage-on-channel-plugins-flutter-io-image – Snehal Singh Jan 10 '23 at 08:49

3 Answers3

1

first run flutter clean

and then flutter pub get

MANISH DAYMA
  • 1,126
  • 3
  • 18
0

do this

flutter clean && flutter pub get 
Bilal Almefleh
  • 277
  • 1
  • 10
0

Because image_picker is not injected well

  1. Clean the flutter channel - flutter clean run in your project-level terminal
  2. Run the flutter pub get channel - flutter pub get its getting your dependency in cache
  3. Run then app
Rahul Variya
  • 1,257
  • 1
  • 6
  • 15