Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The Flutter device daemon cannot be started

I get this error every time I open my project in android studio

-flutter doctor -v

[√] Flutter (Channel stable, 2.8.1, on Microsoft Windows [Version 10.0.19042.1415], locale en-US)
• Flutter version 2.8.1 at C:\src\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 77d935af4d (11 days ago), 2021-12-16 08:37:33 -0800
• Engine revision 890a5fca2e
• Dart version 2.15.1
                                                                       
[√] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
• Android SDK at C:\Users\adria\AppData\Local\Android\sdk
• Platform android-31, build-tools 31.0.0
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
• All Android licenses accepted.

[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Android Studio (version 2020.3)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
   https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
   https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[√] VS Code (version 1.61.2)
• VS Code at C:\Users\adria\AppData\Local\Programs\Microsoft VS Code
• Flutter extension can be installed from:
   https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[√] Connected device (3 available)
• Android SDK built for x86 (mobile) • emulator-5554 • android-x86    • Android 10 (API 29) (emulator)
• Chrome (web)                       • chrome        • web-javascript • Google Chrome 96.0.4664.45
• Edge (web)                         • edge          • web-javascript • Microsoft Edge 96.0.1054.62

• No issues found!

I already tried flutter clean, flutter upgrade, reset my laptop and changed in gradle.properties

org.gradle.jvmargs=-Xmx1536M  => org.gradle.jvmargs=-Xmx1024M

I was using a simulator devices but now from android studio I can't run the application because they don't appear to me

I also can't run commands in android studio like flutter doctor, flutter clean, pub get, flutter upgrade I can only do it from the terminal

like image 396
adrian-nbs Avatar asked Oct 14 '25 22:10

adrian-nbs


2 Answers

I got exact same problem and fixed it by running

flutter clean

and then

flutter pub get
like image 170
Montekar Avatar answered Oct 18 '25 12:10

Montekar


I just ran into this after upgrading to Android Studio Flamingo (2022.2.1). None of the other suggestions here made any difference. The only things that has worked for me so far is to run Android Studio as Administrator. No idea why that works.

like image 37
Steve Faiwiszewski Avatar answered Oct 18 '25 14:10

Steve Faiwiszewski



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!