You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
MissingPluginException(No implementation found for method share on channel plugins.flutter.io/share) #12264
The share plugin works as intended. The error probably appears because the addition of the plugin was followed by hot restart or hot reload rather than full restart. This means the plugin's platform-specific code is not built into the app.
Work around: stop the app and restart it after adding a plugin.
Reacted by Mariano Argañaraz, 码达, Igor Ivanov, datayeah, Khoshbin Ali Ahmed, Andrea Ciani, Prabhu Manoharan, Alex, jojomi, Ridwan Al-Mansur and 64 more
Reacted by AkamineAiko
Reacted by JasonLcs, Akshay Bengani, Joko Nugroho, Mostafa, Robin Sachdeva, Saulo Arantes, alfredo961, Clayton Chapman and Aman Kumar Singh
Reacted by Dithesh, Abhishek Kumar, alfredo961, Clayton Chapman and Aman Kumar Singh
Reacted by Robin Sachdeva, Clayton Chapman and Aman Kumar Singh
Do not use any hack or touch the MainActivity.(kt/java) file. Mostly, I noticed issues only from the Android side.. So,
Delete android/
run flutter create .This will generate normal gradle and kotlin setup that works if you are on the latest stable flutter version
run flutter clean && flutter pub get
run the app
My Flutter Doctor Summary:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.2.0, on macOS 11.4 20F71 darwin-x64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.1)
[✓] IntelliJ IDEA Ultimate Edition (version 2021.1.2)
[✓] VS Code (version 1.57.1)
[✓] Connected device (2 available)
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
Hixie commentedon May 21, 2018
cc @mravn-google
mravn-google commentedon May 22, 2018
The
shareplugin works as intended. The error probably appears because the addition of the plugin was followed by hot restart or hot reload rather than full restart. This means the plugin's platform-specific code is not built into the app.Work around: stop the app and restart it after adding a plugin.
Documentation PR: flutter/website#1038
marksheekey commentedon Feb 7, 2019
I get this error, even after a complete restart.
AkamineAiko commentedon Mar 13, 2019
I get this error after complete restart too.
Navil commentedon Apr 30, 2019
I have the same error. I tried restarting and even reinstalling the application.
Edit: "flutter clean" fixed the issue
ksharm95 commentedon Jul 5, 2019
I have the same issue .
I tried remove application completely then flutter clean then reinstall
solved
Roll engine 7ea9884..1b63444 (91 commits 🔥🔥🔥) (#40442)
Roll engine 7ea9884..1b63444 (91 commits 🔥🔥🔥) (flutter#40442)
mykolamor commentedon Dec 24, 2019
Still cannot run latest version of the plugin
CedYF commentedon Feb 3, 2020
This also breaks even after restarting and re-installing my app for me.
Onus31 commentedon Jun 4, 2020
MissingPluginException(No implementation found for method shareFile on channel plugins.flutter.io/share)
ospar0829 commentedon Jul 23, 2020
This also breaks even after flutter clean, restarting and re-installing the app
wandriputra commentedon Dec 13, 2020
flutter clean not work for me
Daniel-Sogbey commentedon Jan 1, 2021
run :
flutter clean
after that run:
flutter pub get
Daniel-Sogbey commentedon Jan 1, 2021
run :
flutter clean
after that run:
flutter pub get
Daniel-Sogbey commentedon Jan 1, 2021
run :
flutter clean
after that run:
flutter pub get
Daniel-Sogbey commentedon Jan 1, 2021
flutter clean
after that run:
flutter pub get
Daniel-Sogbey commentedon Jan 1, 2021
run :
flutter clean
after that run:
flutter pub get
foxsofter commentedon Feb 8, 2021
Change to the following code and it will work
Spinthecode commentedon Mar 15, 2021
In what file please?
foxsofter commentedon Mar 15, 2021
https://github.com/flutter/plugins/blob/f7096d7d7be9883149a1fb6cebfaa6ff85fb01a5/packages/share/android/src/main/java/io/flutter/plugins/share/SharePlugin.java#L42
gagan781992 commentedon Jun 21, 2021
I have no such file in our project I am in the same error. Which is my thinking everything is right. what should I do now
lordvidex commentedon Jun 28, 2021
Do not use any hack or touch the MainActivity.(kt/java) file. Mostly, I noticed issues only from the Android side.. So,
android/flutter create .This will generate normal gradle and kotlin setup that works if you are on the latest stable flutter versionflutter clean && flutter pub getgithub-actions commentedon Jul 30, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.