Flutter

Flutter plugin not installed error When running flutter doctor

27 September 2026 · 10 min read

Flutter plugin not installed error When running flutter doctor

Encountering the dreaded “Flutter plugin not installed” error while running flutter doctor can be a frustrating roadblock for any Flutter developer, whether you’re a seasoned pro or just starting your mobile app development journey. This error typically indicates that Flutter’s tooling can’t find necessary plugins or dependencies required for your project to run correctly. The ‘flutter doctor’ command is essential for diagnosing issues with your Flutter environment, and a plugin error can halt your progress. It’s crucial to address these errors promptly to ensure a smooth development experience. This comprehensive guide will walk you through common causes, troubleshooting steps, and preventative measures to resolve the “Flutter plugin not installed” error, helping you get back to building amazing apps with Flutter. We will cover everything from verifying your environment setup to manually installing missing plugins.

Understanding the “Flutter Plugin Not Installed” Error

The “Flutter plugin not installed” error arises when Flutter’s tooling, specifically the flutter doctor command, detects that certain plugins required by your project are either missing or incorrectly configured within your development environment. This can occur for several reasons, including issues with your Flutter installation, problems with the project’s dependencies (listed in the pubspec.yaml file), or even discrepancies in your IDE (Integrated Development Environment) setup. Essentially, Flutter relies on a network of plugins to access platform-specific features (like camera access, location services, or push notifications), and if these plugins aren’t properly linked, Flutter throws this error.

One common scenario is when you’ve added a plugin to your pubspec.yaml file but haven’t run flutter pub get or flutter pub upgrade to fetch and install the plugin’s dependencies. Another frequent culprit is outdated Flutter SDK versions, which may lack compatibility with newer plugin versions. According to the official Flutter documentation [External Link 1: flutter.dev], keeping your Flutter SDK up-to-date is crucial for maintaining compatibility and accessing the latest features and bug fixes. Ignoring this can lead to various plugin-related issues, including the dreaded “plugin not installed” error. For example, imagine you’re building a social media app and need to use the image_picker plugin. If this plugin isn’t installed correctly, your users won’t be able to upload photos.

Furthermore, the error might stem from platform-specific configurations that are missing or incorrect. For instance, an Android plugin might require specific permissions in the AndroidManifest.xml file, or an iOS plugin might need certain entries in the Info.plist file. If these configurations are absent or misconfigured, Flutter won’t be able to properly utilize the plugin, resulting in the error. Proper configuration is vital for plugins to work seamlessly across different platforms. The featured snippet-optimized paragraph: The “Flutter plugin not installed” error often occurs because the Flutter SDK cannot locate a plugin specified in your project’s pubspec.yaml file. This can be due to not running flutter pub get after adding the plugin, an outdated Flutter SDK, or missing platform-specific configurations. Addressing these potential issues is crucial for resolving the error and ensuring your Flutter project runs smoothly.

Troubleshooting Steps to Resolve Plugin Installation Issues

When faced with the “Flutter plugin not installed” error, a systematic approach to troubleshooting is essential. Here’s a step-by-step guide to help you diagnose and resolve the issue effectively:

  1. Run flutter clean: This command cleans the Flutter project’s build artifacts and temporary files, often resolving conflicts and inconsistencies that might be causing the error. After running this command, execute flutter pub get again.
  2. Run flutter pub get: This command fetches and installs all the dependencies listed in your pubspec.yaml file, ensuring that all required plugins are present in your project. This is the most common fix.
  3. Run flutter pub upgrade: This command updates your project’s dependencies to the latest compatible versions, resolving potential version conflicts that might be causing the error. Be cautious, as this can introduce breaking changes.
  4. Check your pubspec.yaml file: Verify that the plugin you’re trying to use is correctly listed in your pubspec.yaml file, with the correct version number. Typos or incorrect version specifications can lead to installation failures.
  5. Update your Flutter SDK: Ensure that you’re using the latest version of the Flutter SDK by running flutter upgrade. An outdated SDK might not be compatible with newer plugin versions.
  6. Invalidate Caches/Restart (Android Studio/VS Code): Sometimes, your IDE’s cache can become corrupted, leading to incorrect plugin detection. Invalidate caches and restart your IDE to clear the cache and force a fresh plugin discovery.

After performing each step, run flutter doctor again to check if the error has been resolved. This iterative process helps you pinpoint the exact cause of the issue and apply the appropriate fix. Remember to restart your IDE after making significant changes to your project’s dependencies. For more in-depth troubleshooting, consult the Flutter community forums [External Link 2: stackoverflow.com] or the official Flutter GitHub repository.

If the above steps don’t resolve the issue, you may need to manually install the plugin’s dependencies. This involves navigating to the plugin’s directory within your project’s .pub-cache folder and running the necessary installation commands (e.g., pod install for iOS plugins). This is a more advanced troubleshooting technique that should be used as a last resort, as it can potentially introduce inconsistencies in your project’s dependencies. Ensure you understand the implications before attempting this manual installation.

Platform-Specific Configuration and Plugin Issues

Many Flutter plugins require platform-specific configurations to function correctly on Android and iOS. These configurations typically involve modifying native files like AndroidManifest.xml (for Android) and Info.plist (for iOS). Missing or incorrect configurations in these files are a common cause of the “Flutter plugin not installed” error. For example, a plugin that uses location services might require specific permissions in the AndroidManifest.xml file to access the device’s location. Without these permissions, the plugin won’t work correctly, and Flutter will report an error.

On Android, you might need to add permissions, activities, or services to your AndroidManifest.xml file. You can find the required configurations in the plugin’s documentation or on its pub.dev page. Similarly, on iOS, you might need to add entries to your Info.plist file to explain why your app needs access to certain resources, such as the camera or microphone. These entries are essential for complying with Apple’s privacy policies. Failing to provide these explanations can result in your app being rejected from the App Store.

To ensure that your platform-specific configurations are correct, carefully review the plugin’s documentation and follow the instructions precisely. Use a text editor or IDE that provides syntax highlighting and validation for XML and plist files to avoid errors. Also, be aware that some plugins might require additional dependencies to be installed using native package managers like CocoaPods (for iOS) or Gradle (for Android). If the plugin’s documentation mentions these dependencies, make sure to install them correctly before running your Flutter app. For example, you might need to run pod install in your iOS project directory to install CocoaPods dependencies. A useful resource for understanding native configurations is the official Android Developers [External Link 3: developer.android.com] and Apple Developer documentation.

Preventing Plugin Installation Errors in Future Projects

Proactive measures can significantly reduce the likelihood of encountering “Flutter plugin not installed” errors in your future Flutter projects. By establishing good development practices and adhering to best practices, you can create a more stable and reliable development environment.

  • Keep your Flutter SDK up-to-date: Regularly update your Flutter SDK to the latest stable version to ensure compatibility with the latest plugins and features. Use the flutter upgrade command to update your SDK.
  • Use a consistent dependency management strategy: Employ a consistent approach to managing your project’s dependencies, using flutter pub get and flutter pub upgrade as needed. Avoid manually modifying the pubspec.lock file, as this can lead to dependency conflicts.

Consider using version control systems like Git to track changes to your project’s dependencies. This allows you to easily revert to a previous state if a plugin update introduces breaking changes. Regularly commit your pubspec.yaml and pubspec.lock files to your Git repository to maintain a record of your project’s dependencies over time. Furthermore, create a clear documentation for your team or for yourself, detailing the plugins used, their specific versions, and any platform-specific configurations required. This documentation serves as a valuable reference point when troubleshooting plugin-related issues in the future. This link goes to a page with troubleshooting tips.

Another effective preventative measure is to thoroughly test your app on different platforms (Android and iOS) after adding or updating plugins. This helps you identify any platform-specific issues early on and address them before they become major problems. Use emulators, simulators, and physical devices to test your app in a variety of environments. By taking these proactive steps, you can minimize the risk of encountering plugin installation errors and ensure a smoother development workflow. Regular testing and documentation are key to a healthy Flutter project lifecycle.

Infographic here: A visual guide to troubleshooting "Flutter plugin not installed" errors.
FAQ: Addressing Common Questions About Plugin Issues ----------------------------------------------------
**Q: What does the "Flutter plugin not installed" error mean?**
A: This error means Flutter cannot find a plugin required by your project. This could be due to missing dependencies, incorrect configurations, or outdated SDK versions.
**Q: How do I fix the "Flutter plugin not installed" error?**
A: Try running `flutter clean`, `flutter pub get`, and `flutter pub upgrade`. Also, ensure your Flutter SDK is up-to-date and your platform-specific configurations are correct.
**Q: Why is `flutter doctor` showing a plugin error even after installing the plugin?**
A: This could be due to caching issues in your IDE. Try invalidating caches and restarting your IDE. Also, check for platform-specific configuration requirements that might be missing.
**Q: How can I prevent this error in the future?**
A: Keep your Flutter SDK updated, use a consistent dependency management strategy, and thoroughly test your app on different platforms after adding or updating plugins.
By understanding the root causes of the "Flutter plugin not installed" error and following the troubleshooting steps outlined in this guide, you can effectively resolve this issue and prevent it from recurring in your future Flutter projects. Remember to prioritize a systematic approach to troubleshooting, carefully review plugin documentation, and maintain a well-organized and up-to-date development environment. Addressing this error is a crucial step in mastering Flutter development and building robust, cross-platform mobile applications.

We’ve covered a lot of ground here, from understanding the error’s causes to implementing practical solutions. The key takeaway is that a methodical approach, coupled with a good understanding of Flutter’s dependency management, can save you hours of frustration. Don’t let this error derail your progress. Now, armed with this knowledge, go forth and build amazing Flutter apps! Consider exploring related topics like Flutter dependency management, platform-specific configurations, and best practices for maintaining a healthy Flutter project. Happy coding!

Question & Answer :
I am configuring the Flutter SDK on my Linux Ubuntu 16.04 (Xenial Xerus) system. Why am I getting the following error when I run the flutter doctor?

I have specified both PATHS for flutter and dart in the .bashrc file, but I get this error when I run flutter doctor:

Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel beta, v0.5.1, on Linux, locale en_US.UTF-8) [✓] Android toolchain - develop for Android devices (Android SDK 28.0.2) [✓] Android Studio (version 3.1) ✗ Flutter plugin not installed; this adds Flutter specific functionality. ✗ Dart plugin not installed; this adds Dart specific functionality. [✓] IntelliJ IDEA Community Edition (version 2018.2) [!] VS Code (version 1.25.1) [!] Connected devices ! No devices available ! Doctor found issues in 2 categories. 

Safe fix for Mac (Android Studio 4.1+). It is in a different directory now, but the symbolic link helps.

Just run this command in the Terminal:

ln -s ~/Library/Application\ Support/Google/AndroidStudio4.1/plugins ~/Library/Application\ Support/AndroidStudio4.1 

If you have a different Android Studio version or an installation folder, adjust the command accordingly.