1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[Flutter] Flutter Daemon failed to start

Discussão em 'Mobile' iniciado por Stack, Novembro 9, 2024 às 18:32.

  1. Stack

    Stack Membro Participativo

    I am getting this warning every time I open VS code. Are there any ways to solve this problem? Thank you.

    [​IMG]

    I added the log of this warning. I have tried flutter clean and flutter doctor and everything is fine, but this warning still appear every time I open VS Code. I also faced a problem where VS Code show no device no the status bar but when I run flutter devices it shows that there are 3 active devices. Thank you.

    [12:07:27 pm] [General] [Info] C:\Program Files\Intel\iCLS Client\bin
    [12:07:27 pm] [General] [Info] C:\windows\system32
    [12:07:27 pm] [General] [Info] C:\windows\system32\bin
    [12:07:27 pm] [General] [Info] C:\windows
    [12:07:27 pm] [General] [Info] C:\windows\bin
    [12:07:27 pm] [General] [Info] C:\windows\System32\Wbem
    [12:07:27 pm] [General] [Info] C:\windows\System32\Wbem\bin
    [12:07:27 pm] [General] [Info] C:\windows\System32\WindowsPowerShell\v1.0\
    [12:07:27 pm] [General] [Info] C:\windows\System32\WindowsPowerShell\v1.0\bin
    [12:07:27 pm] [General] [Info] C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common
    [12:07:27 pm] [General] [Info] C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common\bin
    [12:07:27 pm] [General] [Info] C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL
    [12:07:27 pm] [General] [Info] C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL\bin
    [12:07:27 pm] [General] [Info] C:\Program Files\Intel\Intel(R) Management Engine Components\DAL
    [12:07:27 pm] [General] [Info] C:\Program Files\Intel\Intel(R) Management Engine Components\DAL\bin
    [12:07:27 pm] [General] [Info] C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT
    [12:07:27 pm] [General] [Info] C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT\bin
    [12:07:27 pm] [General] [Info] C:\Program Files\Intel\Intel(R) Management Engine Components\IPT
    [12:07:27 pm] [General] [Info] C:\Program Files\Intel\Intel(R) Management Engine Components\IPT\bin
    [12:07:27 pm] [General] [Info] C:\WINDOWS\system32
    [12:07:27 pm] [General] [Info] C:\WINDOWS\system32\bin
    [12:07:27 pm] [General] [Info] C:\WINDOWS
    [12:07:27 pm] [General] [Info] C:\WINDOWS\bin
    [12:07:27 pm] [General] [Info] C:\WINDOWS\System32\Wbem
    [12:07:27 pm] [General] [Info] C:\WINDOWS\System32\Wbem\bin
    [12:07:27 pm] [General] [Info] C:\WINDOWS\System32\WindowsPowerShell\v1.0\
    [12:07:27 pm] [General] [Info] C:\WINDOWS\System32\WindowsPowerShell\v1.0\bin
    [12:07:27 pm] [General] [Info] C:\Program Files\MATLAB\R2018a\bin
    [12:07:27 pm] [General] [Info] C:\WINDOWS\System32\OpenSSH\
    [12:07:27 pm] [General] [Info] C:\WINDOWS\System32\OpenSSH\bin
    [12:07:27 pm] [General] [Info] C:\Program Files (x86)\Brackets\command
    [12:07:27 pm] [General] [Info] C:\Program Files (x86)\Brackets\command\bin
    [12:07:27 pm] [General] [Info] C:\Program Files\PuTTY\
    [12:07:27 pm] [General] [Info] C:\Program Files\PuTTY\bin
    [12:07:27 pm] [General] [Info] C:\Program Files\nodejs\
    [12:07:27 pm] [General] [Info] C:\Program Files\nodejs\bin
    [12:07:27 pm] [General] [Info] C:\Program Files\Git\cmd
    [12:07:27 pm] [General] [Info] C:\Program Files\Git\cmd\bin
    [12:07:27 pm] [General] [Info] C:\Program Files\dotnet\
    [12:07:27 pm] [General] [Info] C:\Program Files\dotnet\bin
    [12:07:27 pm] [General] [Info] C:\Program Files\Go\bin
    [12:07:27 pm] [General] [Info] C:\Program Files\Docker\Docker\resources\bin
    [12:07:27 pm] [General] [Info] C:\ProgramData\DockerDesktop\version-bin
    [12:07:27 pm] [General] [Info] C:\ProgramData\DockerDesktop\version-bin\bin
    [12:07:27 pm] [General] [Info] C:\Users\nurfa\AppData\Local\Programs\Python\Python39\Scripts
    [12:07:27 pm] [General] [Info] C:\Users\nurfa\AppData\Local\Programs\Python\Python39\Scripts\bin
    [12:07:27 pm] [General] [Info] C:\Users\nurfa\AppData\Local\Programs\Python\Python39
    [12:07:27 pm] [General] [Info] C:\Users\nurfa\AppData\Local\Programs\Python\Python39\bin
    [12:07:27 pm] [General] [Info] C:\Users\nurfa\AppData\Local\Microsoft\WindowsApps
    [12:07:27 pm] [General] [Info] C:\Users\nurfa\AppData\Local\Microsoft\WindowsApps\bin
    [12:07:27 pm] [General] [Info] C:\Users\nurfa\AppData\Local\Programs\MiKTeX 2.9\miktex\bin\x64\
    [12:07:27 pm] [General] [Info] C:\Users\nurfa\AppData\Local\Programs\MiKTeX 2.9\miktex\bin\x64\bin
    [12:07:27 pm] [General] [Info] C:\Users\nurfa\AppData\Roaming\npm
    [12:07:27 pm] [General] [Info] C:\Users\nurfa\AppData\Roaming\npm\bin
    [12:07:27 pm] [General] [Info] C:\Program Files (x86)\Vim\vim82
    [12:07:27 pm] [General] [Info] C:\Program Files (x86)\Vim\vim82\bin
    [12:07:27 pm] [General] [Info] C:\Program Files\mosquitto
    [12:07:27 pm] [General] [Info] C:\Program Files\mosquitto\bin
    [12:07:27 pm] [General] [Info] C:\Program Files\RabbitMQ Server\rabbitmq_server-3.8.14\sbin
    [12:07:27 pm] [General] [Info] C:\Program Files (x86)\GnuWin32\bin
    [12:07:27 pm] [General] [Info] C:\Program Files\OpenSSL-Win64
    [12:07:27 pm] [General] [Info] C:\Program Files\OpenSSL-Win64\bin
    [12:07:27 pm] [General] [Info] C:\Program Files\OpenSSL-Win64\bin
    [12:07:27 pm] [General] [Info] C:\Program Files\Handle
    [12:07:27 pm] [General] [Info] C:\Program Files\Handle\bin
    [12:07:27 pm] [General] [Info] C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2021.1\bin
    [12:07:27 pm] [General] [Info] C:\Program Files\JetBrains\PyCharm Community Edition 2021.1.1\bin
    [12:07:27 pm] [General] [Info] C:\Users\nurfa\flutter\bin
    [12:07:27 pm] [General] [Info] C:\Users\nurfa\go\bin
    [12:07:27 pm] [General] [Info] C:\Chrome Driver Win32
    [12:07:27 pm] [General] [Info] C:\Chrome Driver Win32\bin
    [12:07:27 pm] [General] [Info] C:\Program Files\PostgreSQL\13\bin
    [12:07:27 pm] [General] [Info] C:\Users\nurfa\AppData\Local\Programs\Microsoft VS Code\bin
    [12:07:27 pm] [General] [Info] Found at:
    [12:07:27 pm] [General] [Info] C:\Users\nurfa\flutter\bin\
    [12:07:27 pm] [General] [Info] C:\Users\nurfa\flutter\bin
    [12:07:27 pm] [General] [Info] Candidate paths to be post-filtered:
    [12:07:27 pm] [General] [Info] C:\Users\nurfa\flutter
    [12:07:27 pm] [General] [Info] C:\Users\nurfa\flutter
    [12:07:27 pm] [General] [Info] Found at C:\Users\nurfa\flutter
    [12:07:27 pm] [General] [Info] Returning SDK path C:\Users\nurfa\flutter for flutter.bat
    [12:07:27 pm] [General] [Info] Searching for dart.exe
    [12:07:27 pm] [General] [Info] Looking for dart.exe in:
    [12:07:27 pm] [General] [Info] C:\Users\nurfa\flutter\bin\cache\dart-sdk
    [12:07:27 pm] [General] [Info] C:\Users\nurfa\flutter\bin\cache\dart-sdk\bin
    [12:07:27 pm] [General] [Info] C:\ProgramData\Oracle\Java\javapath
    [12:07:27 pm] [General] [Info] C:\ProgramData\Oracle\Java\javapath\bin
    [12:07:27 pm] [General] [Info] C:\Program Files (x86)\Intel\iCLS Client\
    [12:07:27 pm] [General] [Info] C:\Program Files (x86)\Intel\iCLS Client\bin
    [12:07:27 pm] [General] [Info] C:\Program Files\Intel\iCLS Client\
    [12:07:27 pm] [General] [Info] C:\Program Files\Intel\iCLS Client\bin
    [12:07:27 pm] [General] [Info] C:\windows\system32
    [12:07:27 pm] [General] [Info] C:\windows\system32\bin
    [12:07:27 pm] [General] [Info] C:\windows
    [12:07:27 pm] [General] [Info] C:\windows\bin
    [12:07:27 pm] [General] [Info] C:\windows\System32\Wbem
    [12:07:27 pm] [General] [Info] C:\windows\System32\Wbem\bin
    [12:07:27 pm] [General] [Info] C:\windows\System32\WindowsPowerShell\v1.0\
    [12:07:27 pm] [General] [Info] C:\windows\System32\WindowsPowerShell\v1.0\bin
    [12:07:27 pm] [General] [Info] C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common
    [12:07:27 pm] [General] [Info] C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common\bin
    [12:07:27 pm] [General] [Info] C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL
    [12:07:27 pm] [General] [Info] C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL\bin
    [12:07:27 pm] [General] [Info] C:\Program Files\Intel\Intel(R) Management Engine Components\DAL
    [12:07:27 pm] [General] [Info] C:\Program Files\Intel\Intel(R) Management Engine Components\DAL\bin
    [12:07:27 pm] [General] [Info] C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT
    [12:07:27 pm] [General] [Info] C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT\bin
    [12:07:27 pm] [General] [Info] C:\Program Files\Intel\Intel(R) Management Engine Components\IPT
    [12:07:27 pm] [General] [Info] C:\Program Files\Intel\Intel(R) Management Engine Components\IPT\bin
    [12:07:27 pm] [General] [Info] C:\WINDOWS\system32
    [12:07:27 pm] [General] [Info] C:\WINDOWS\system32\bin
    [12:07:27 pm] [General] [Info] C:\WINDOWS
    [12:07:27 pm] [General] [Info] C:\WINDOWS\bin
    [12:07:27 pm] [General] [Info] C:\WINDOWS\System32\Wbem
    [12:07:27 pm] [General] [Info] C:\WINDOWS\System32\Wbem\bin
    [12:07:27 pm] [General] [Info] C:\WINDOWS\System32\WindowsPowerShell\v1.0\
    [12:07:27 pm] [General] [Info] C:\WINDOWS\System32\WindowsPowerShell\v1.0\bin
    [12:07:27 pm] [General] [Info] C:\Program Files\MATLAB\R2018a\bin
    [12:07:27 pm] [General] [Info] C:\WINDOWS\System32\OpenSSH\
    [12:07:27 pm] [General] [Info] C:\WINDOWS\System32\OpenSSH\bin
    [12:07:27 pm] [General] [Info] C:\Program Files (x86)\Brackets\command
    [12:07:27 pm] [General] [Info] C:\Program Files (x86)\Brackets\command\bin
    [12:07:27 pm] [General] [Info] C:\Program Files\PuTTY\
    [12:07:27 pm] [General] [Info] C:\Program Files\PuTTY\bin
    [12:07:27 pm] [General] [Info] C:\Program Files\nodejs\
    [12:07:27 pm] [General] [Info] C:\Program Files\nodejs\bin
    [12:07:27 pm] [General] [Info] C:\Program Files\Git\cmd
    [12:07:27 pm] [General] [Info] C:\Program Files\Git\cmd\bin
    [12:07:27 pm] [General] [Info] C:\Program Files\dotnet\
    [12:07:27 pm] [General] [Info] C:\Program Files\dotnet\bin
    [12:07:27 pm] [General] [Info] C:\Program Files\Go\bin
    [12:07:27 pm] [General] [Info] C:\Program Files\Docker\Docker\resources\bin
    [12:07:27 pm] [General] [Info] C:\ProgramData\DockerDesktop\version-bin
    [12:07:27 pm] [General] [Info] C:\ProgramData\DockerDesktop\version-bin\bin
    [12:07:27 pm] [General] [Info] C:\Users\nurfa\AppData\Local\Programs\Python\Python39\Scripts
    [12:07:27 pm] [General] [Info] C:\Users\nurfa\AppData\Local\Programs\Python\Python39\Scripts\bin
    [12:07:27 pm] [General] [Info] C:\Users\nurfa\AppData\Local\Programs\Python\Python39
    [12:07:27 pm] [General] [Info] C:\Users\nurfa\AppData\Local\Programs\Python\Python39\bin
    [12:07:27 pm] [General] [Info] C:\Users\nurfa\AppData\Local\Microsoft\WindowsApps
    [12:07:27 pm] [General] [Info] C:\Users\nurfa\AppData\Local\Microsoft\WindowsApps\bin
    [12:07:27 pm] [General] [Info] C:\Users\nurfa\AppData\Local\Programs\MiKTeX 2.9\miktex\bin\x64\
    [12:07:27 pm] [General] [Info] C:\Users\nurfa\AppData\Local\Programs\MiKTeX 2.9\miktex\bin\x64\bin
    [12:07:27 pm] [General] [Info] C:\Users\nurfa\AppData\Roaming\npm
    [12:07:27 pm] [General] [Info] C:\Users\nurfa\AppData\Roaming\npm\bin
    [12:07:27 pm] [General] [Info] C:\Program Files (x86)\Vim\vim82
    [12:07:27 pm] [General] [Info] C:\Program Files (x86)\Vim\vim82\bin
    [12:07:27 pm] [General] [Info] C:\Program Files\mosquitto
    [12:07:27 pm] [General] [Info] C:\Program Files\mosquitto\bin
    [12:07:27 pm] [General] [Info] C:\Program Files\RabbitMQ Server\rabbitmq_server-3.8.14\sbin
    [12:07:27 pm] [General] [Info] C:\Program Files (x86)\GnuWin32\bin
    [12:07:27 pm] [General] [Info] C:\Program Files\OpenSSL-Win64
    [12:07:27 pm] [General] [Info] C:\Program Files\OpenSSL-Win64\bin
    [12:07:27 pm] [General] [Info] C:\Program Files\OpenSSL-Win64\bin
    [12:07:27 pm] [General] [Info] C:\Program Files\Handle
    [12:07:27 pm] [General] [Info] C:\Program Files\Handle\bin
    [12:07:27 pm] [General] [Info] C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2021.1\bin
    [12:07:27 pm] [General] [Info] C:\Program Files\JetBrains\PyCharm Community Edition 2021.1.1\bin
    [12:07:27 pm] [General] [Info] C:\Users\nurfa\flutter\bin
    [12:07:27 pm] [General] [Info] C:\Users\nurfa\go\bin
    [12:07:27 pm] [General] [Info] C:\Chrome Driver Win32
    [12:07:27 pm] [General] [Info] C:\Chrome Driver Win32\bin
    [12:07:27 pm] [General] [Info] C:\Program Files\PostgreSQL\13\bin
    [12:07:27 pm] [General] [Info] C:\Users\nurfa\AppData\Local\Programs\Microsoft VS Code\bin
    [12:07:27 pm] [General] [Info] C:\Users\nurfa\flutter\bin\cache\dart-sdk
    [12:07:27 pm] [General] [Info] C:\Users\nurfa\flutter\bin\cache\dart-sdk\bin
    [12:07:27 pm] [General] [Info] Found at:
    [12:07:27 pm] [General] [Info] C:\Users\nurfa\flutter\bin\cache\dart-sdk\bin
    [12:07:27 pm] [General] [Info] C:\Users\nurfa\flutter\bin\cache\dart-sdk\bin
    [12:07:27 pm] [General] [Info] Candidate paths to be post-filtered:
    [12:07:27 pm] [General] [Info] C:\Users\nurfa\flutter\bin\cache\dart-sdk
    [12:07:27 pm] [General] [Info] C:\Users\nurfa\flutter\bin\cache\dart-sdk
    [12:07:27 pm] [General] [Info] Found at C:\Users\nurfa\flutter\bin\cache\dart-sdk
    [12:07:27 pm] [General] [Info] Returning SDK path C:\Users\nurfa\flutter\bin\cache\dart-sdk for dart.exe
    [12:07:27 pm] [General] [Info] Experiment random number is 55 for experiement 'lsp-default'. Experiment is enabled for <= 100
    [12:07:27 pm] [General] [Info] Experiment 'lsp-default' is activating (not first time)
    [12:07:27 pm] [General] [Info] !! PLEASE REVIEW THIS LOG FOR SENSITIVE INFORMATION BEFORE SHARING !!

    Dart Code extension: 3.25.1
    Flutter extension: 3.25.0 (not activated)

    App: Visual Studio Code
    Version: 1.59.0
    Platform: win

    Workspace type: Flutter
    Analyzer type: LSP
    Multi-root?: false

    Dart SDK:
    Loc: C:\Users\nurfa\flutter\bin\cache\dart-sdk
    Ver: 2.13.4
    Flutter SDK:
    Loc: C:\Users\nurfa\flutter
    Ver: 2.2.3

    HTTP_PROXY: undefined
    NO_PROXY: undefined
    [12:07:27 pm] [FlutterDaemon] [Info] Spawning C:\Users\nurfa\flutter\bin\flutter.bat with args ["--no-sound-null-safety","daemon"]
    [12:07:27 pm] [FlutterDaemon] [Info] .. in C:\Users\nurfa\flutter
    [12:07:27 pm] [FlutterDaemon] [Info] .. with {"toolEnv":{"FLUTTER_HOST":"VSCode","PUB_ENVIRONMENT":"vscode.dart-code"}}
    [12:07:27 pm] [FlutterDaemon] [Info] PID: 39588
    [12:07:27 pm] [FlutterDaemon] [Info] ==> [{"id":"1","method":"emulator.getEmulators"}]
    [12:07:27 pm] [General] [Info] Spawning C:\Users\nurfa\flutter\bin\cache\dart-sdk\bin\pub.bat with args ["global","list"]
    [12:07:27 pm] [CommandProcesses] [Info] (PROC 12148) Logging data for process...
    [12:07:27 pm] [Analyzer] [Info] Spawning C:\Users\nurfa\flutter\bin\cache\dart-sdk\bin\dart.exe with args ["C:\\Users\\nurfa\\flutter\\bin\\cache\\dart-sdk\\bin\\snapshots\\analysis_server.dart.snapshot","--lsp","--client-id=VS-Code","--client-version=3.25.1"]
    [12:07:27 pm] [Analyzer] [Info] PID: 63952
    [12:07:27 pm] [General] [Info] Activating Flutter extension for Flutter project...
    [12:07:27 pm] [General] [Info] Extension:Startup timing: 58503ms
    [12:07:27 pm] [Analyzer] [Info] ==> Content-Length: 4900
    [12:07:27 pm] [Analyzer] [Info] ==> {"jsonrpc":"2.0","id":0,"method":"initialize","params":{"processId":39588,"clientInfo":{"name":"Visual Studio Code","version":"1.59.0"},"locale":"en-us","rootPath":"c:\\Users\\nurfa\\Desktop\\tracker_fisherman","rootUri":"file:///c%3A/Users/nurfa/Desktop/tracker_fisherman","capabilities":{"workspace":{"applyEdit":true,"workspaceEdit":{"documentChanges":true,"resourceOperations":["create","rename","delete"],"failureHandling":"textOnlyTransactional","normalizesLineEndings":true,"changeAnnotati…
    [12:07:28 pm] [General] [Info] !! PLEASE REVIEW THIS LOG FOR SENSITIVE INFORMATION BEFORE SHARING !!

    Dart Code extension: 3.25.1
    Flutter extension: 3.25.0 (activated)

    App: Visual Studio Code
    Version: 1.59.0
    Platform: win

    Workspace type: Flutter
    Analyzer type: LSP
    Multi-root?: false

    Dart SDK:
    Loc: C:\Users\nurfa\flutter\bin\cache\dart-sdk
    Ver: 2.13.4
    Flutter SDK:
    Loc: C:\Users\nurfa\flutter
    Ver: 2.2.3

    HTTP_PROXY: undefined
    NO_PROXY: undefined
    [12:07:28 pm] [CommandProcesses] [Info] (PROC 12148) devtools 2.5.0
    [12:07:28 pm] [General] [Info] Found 0 folders requiring "pub get":
    [12:07:28 pm] [CommandProcesses] [Info] (PROC 12148) exited (0, null)
    [12:07:28 pm] [CommandProcesses] [Info] (PROC 12148) closed (0, null)
    [12:07:28 pm] [General] [Info] devtools version 2.5.0 appears to be latest so returning Valid
    [12:07:28 pm] [DevTools] [Info] Spawning C:\Users\nurfa\flutter\bin\cache\dart-sdk\bin\pub.bat with args ["global","run","devtools","--machine","--try-ports","10","--allow-embedding"]
    [12:07:28 pm] [DevTools] [Info] .. with {"toolEnv":{"FLUTTER_HOST":"VSCode","PUB_ENVIRONMENT":"vscode.dart-code"}}
    [12:07:28 pm] [DevTools] [Info] PID: 39588
    [12:07:35 pm] [Analyzer] [Info] <== Content-Length: 384
    Content-Type: application/vscode-jsonrpc; charset=utf-8

    {"id":0,"jsonrpc":"2.0","result":{"capabilities":{"executeCommandProvider":{"commands":["edit.sortMembers","edit.organizeImports","edit.sendWorkspaceEdit","refactor.perform"],"workDoneProgress":true},"workspaceSymbolProvider":true,"workspace":{"workspaceFolders":{"supported":true,"changeNotifications":true}}},"serverInfo":{"name":"Dart SDK LSP Analysis Server","version":"2.13.4"}}}
    [12:07:35 pm] [DevTools] [Info] <== {"event":"server.started","method":"server.started","params":{"host":"127.0.0.1","port":9100,"pid":61224,"protocolVersion":"1.1.0"}}

    Continue reading...

Compartilhe esta Página