text:
Unable to run "adb", check your Android SDK installation and ANDROID_SDK_ROOT environment variable

Hi, I'm not able to use properly Flutter with Android Studio on my new laptop after switching from the old one.
Here is the output of flutter doctor verbose:

flutter doctor -v
C:\src\flutter\bin\flutter.bat doctor --verbose
[√] Flutter (Channel stable, 1.22.4, on Microsoft Windows [Versione 10.0.18363.1256], locale it-IT)
    • Flutter version 1.22.4 at C:\src\flutter
    • Framework revision 1aafb3a8b9 (4 weeks ago), 2020-11-13 09:59:28 -0800
    • Engine revision 2c956a31c0
    • Dart version 2.10.4

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at C:\Users\Claudio\AppData\Local\Android\Sdk\
    • Platform android-30, build-tools 30.0.3
    • ANDROID_SDK_ROOT = C:\Users\Claudio\AppData\Local\Android\Sdk\
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[!] Android Studio (version 4.1.0)
    • Android Studio at C:\Program Files\Android\Android Studio
    X Flutter plugin not installed; this adds Flutter specific functionality.
    X Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[!] IntelliJ IDEA Community Edition (version 2018.3)
    • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2018.3.5
    X Flutter plugin not installed; this adds Flutter specific functionality.
    X Dart plugin not installed; this adds Dart specific functionality.
    • For information about installing plugins, see
      https://flutter.dev/intellij-setup/#installing-the-plugins

[☠] Connected device (the doctor check crashed)
    X Due to an error, the doctor check did not complete. If the error message below is not helpful, please let us know about this issue at https://github.com/flutter/flutter/issues.
    X Exception: Unable to run "adb", check your Android SDK installation and ANDROID_SDK_ROOT environment variable: C:\Users\Claudio\AppData\Local\Android\Sdk\platform-tools\adb.exe
    • #0      throwToolExit (package:flutter_tools/src/base/common.dart:14:3)
      #1      AndroidDevices.pollingGetDevices (package:flutter_tools/src/android/android_device_discovery.dart:71:7)
      <asynchronous suspension>
      #2      PollingDeviceDiscovery._populateDevices (package:flutter_tools/src/device.dart:467:60)
      #3      PollingDeviceDiscovery.devices (package:flutter_tools/src/device.dart:457:12)
      #4      DeviceManager.getAllConnectedDevices (package:flutter_tools/src/device.dart:171:20)
      #5      DeviceValidator.validate (package:flutter_tools/src/doctor.dart:975:55)
      #6      asyncGuard.<anonymous closure> (package:flutter_tools/src/base/async_guard.dart:111:32)
      #7      _rootRun (dart:async/zone.dart:1190:13)
      #8      _CustomZone.run (dart:async/zone.dart:1093:19)
      #9      _runZoned (dart:async/zone.dart:1630:10)
      #10     runZonedGuarded (dart:async/zone.dart:1618:12)
      #11     runZoned (dart:async/zone.dart:1547:12)
      #12     asyncGuard (package:flutter_tools/src/base/async_guard.dart:109:3)
      #13     Doctor.startValidatorTasks (package:flutter_tools/src/doctor.dart:191:9)
      #14     Doctor.diagnose (package:flutter_tools/src/doctor.dart:290:47)
      #15     DoctorCommand.runCommand (package:flutter_tools/src/commands/doctor.dart:59:47)
      #16     FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:977:18)
      #17     _rootRunUnary (dart:async/zone.dart:1198:47)
      #18     _CustomZone.runUnary (dart:async/zone.dart:1100:19)
      #19     _FutureListener.handleValue (dart:async/future_impl.dart:143:18)
      #20     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:696:45)
      #21     Future._propagateToListeners (dart:async/future_impl.dart:725:32)
      #22     Future._completeWithValue (dart:async/future_impl.dart:529:5)
      #23     Future._asyncCompleteWithValue.<anonymous closure> (dart:async/future_impl.dart:567:7)
      #24     _rootRun (dart:async/zone.dart:1190:13)
      #25     _CustomZone.run (dart:async/zone.dart:1093:19)
      #26     _CustomZone.runGuarded (dart:async/zone.dart:997:7)
      #27     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1037:23)
      #28     _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
      #29     _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
      #30     _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:118:13)
      #31     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:169:5)

! Doctor found issues in 3 categories.

As suggested in the output, i checked env variables, but seems all ok. I don't have any other adb.exe running on my machine. These are my env variables:
ANDROID_SDK_ROOT: C:\Users\Claudio\AppData\Local\Android\Sdk
PATH: [...] C:\Users\Claudio\AppData\Local\Android\Sdk\platform-tools;C:\Users\Claudio\AppData\Local\Android\Sdk\tools;[...]
This is what i tryed to fix the issue, but it didn't work:

reboot :P
uninstall and reinstall platform-tools from Android SDK settings menu in Android Studio
searched with "where adb" if there was another adb.exe causing issues, but i didn't find anything

In my old laptop everything is EXACTLY the same, same platform-tools version, same Android Studio version, same env variables ecc...
I really can't get what's wrong, and this issue is causing important delay to my work, thanks a lot to anyone that will help me!

Hi @davidefiozzi
Can you please run from your terminal (making sure that flutter is added to your path)
adb devices

flutter doctor -v

and provide the full logs.
Thank you

adb devices recognizes my device

I noticed that if i run adb in cmd.exe it doesn't work

but if i run it on Windows PowerShell it does work.
I also tryed in flutter directory

I don't repost the verbose flutter doctor output because is exactly the same as the one provided in the issue opening
Thanks a lot Pedro for the help

Is flutter doctor -v able to detect your device?

No, it crashes
[☠] Connected device (the doctor check crashed)
X Due to an error, the doctor check did not complete. If the error message below is not helpful, please let us know about this issue at https://github.com/flutter/flutter/issues.
X Exception: Unable to run "adb", check your Android SDK installation and ANDROID_SDK_ROOT environment variable: C:\Users\Claudio\AppData\Local\Android\Sdk\platform-tools\adb.exe

@davidefiozzi Can you find where adb.exe is in your SDK? It is in C:\Users\Claudio\AppData\Local\Android\Sdk\platform-tools?

Yes, is the only adb.exe present in my system.
(as written in the first post)

Yes, is the only adb.exe present in my system.
(as written in the first post)

I encounter with the same error on ANDROID_SDK_ROOT variable. How did you fix this?

$ flutter doctor -v
[✓] Flutter (Channel stable, 2.2.1, on Microsoft Windows [Version 10.0.19043.985], locale en-SG)
    • Flutter version 2.2.1 at C:\src\flutter
    • Framework revision 02c026b03c (22 hours ago), 2021-05-27 12:24:44 -0700
    • Engine revision 0fdb562ac8
    • Dart version 2.13.1

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at C:\Users\chunw\AppData\Local\Android\Sdk\
    • Platform android-30, build-tools 30.0.3
    • ANDROID_SDK_ROOT = C:\Users\chunw\AppData\Local\Android\Sdk\
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6842174)
    • All Android licenses accepted.

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

[✓] Android Studio
    • 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
    • android-studio-dir = C:\Program Files\Android\Android Studio
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6842174)

[✓] IntelliJ IDEA Community Edition (version 2021.1)
    • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2020.2.4
    • 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

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

[☠] Connected device (the doctor check crashed)
    ✗ Due to an error, the doctor check did not complete. If the error message below is not helpful, please let us know
      about this issue at https://github.com/flutter/flutter/issues.
    ✗ Exception: Unable to run "adb", check your Android SDK installation and ANDROID_SDK_ROOT environment variable:
      C:\Users\chunw\AppData\Local\Android\Sdk\platform-tools\adb.exe
    • #0      throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
      #1      AndroidDevices.pollingGetDevices (package:flutter_tools/src/android/android_device_discovery.dart:78:7)
      <asynchronous suspension>
      #2      PollingDeviceDiscovery._populateDevices (package:flutter_tools/src/device.dart:397:54)
      <asynchronous suspension>
      #3      Future.wait.<anonymous closure> (dart:async/future.dart)
      <asynchronous suspension>
      #4      DeviceManager.getAllConnectedDevices (package:flutter_tools/src/device.dart:163:40)
      <asynchronous suspension>
      #5      DeviceValidator.validate (package:flutter_tools/src/doctor.dart:510:34)
      <asynchronous suspension>
      #6      asyncGuard.<anonymous closure> (package:flutter_tools/src/base/async_guard.dart:111:24)
      <asynchronous suspension>

I also have a similar issue and I cannot run adb on cmd, but it works on git bash or powershell.
Interestingly, when I created a new user account on the same pc, and followed the same steps in https://flutter.dev/docs/get-started/install/windows, I can run flutter apps just fine. It just does not work on my main account, even after many rounds of reinstallations.

`I have solved this issue in ubuntu:

in  ~/.bashrc add the following lines:
export PATH="/home/edutilos/Applications/android-sdk/platform-tools:$PATH"
export PATH="/home/edutilos/Applications/android-sdk/tools:$PATH"

source ~/.bashrc file:
source ~/.bashrc

In Windows , probably you have to make sure /tools and /platform-tools are in the %PATH%.
`

Same problem:
[✓] Flutter (Channel stable, 2.2.3, on macOS 11.4 20F71 darwin-x64, locale en)
    • Flutter version 2.2.3 at /Users/mac/tools/flutter
    • Framework revision f4abaa0735 (3 weeks ago), 2021-07-01 12:46:11 -0700
    • Engine revision 241c87ad80
    • Dart version 2.13.4

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/mac/Library/Android/sdk
    • Platform android-31, build-tools 30.0.3
    • ANDROID_HOME = /Users/mac/Library/Android/sdk
    • ANDROID_SDK_ROOT = /Users/mac/Library/Android/sdk
    • Java binary at: /Users/mac/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/202.7351085/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.5.1, Build version 12E507
    • CocoaPods version 1.10.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.2)
    • Android Studio at /Users/mac/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/202.7351085/Android Studio.app/Contents
    • 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.8+10-b944.6916264)

[✓] IntelliJ IDEA Ultimate Edition (version 2021.1.2)
    • IntelliJ at /Users/mac/Applications/JetBrains Toolbox/IntelliJ IDEA Ultimate.app
    • Flutter plugin version 58.0.3
    • Dart plugin version 211.7665

[✓] VS Code (version 1.58.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.24.0

[☠] Connected device (the doctor check crashed)
    ✗ Due to an error, the doctor check did not complete. If the error message below is not helpful, please let us know about this issue at https://github.com/flutter/flutter/issues.
    ✗ Exception: Unable to run "adb", check your Android SDK installation and ANDROID_SDK_ROOT environment variable: /Users/mac/Library/Android/sdk/platform-tools/adb
    • #0      throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
      #1      AndroidDevices.pollingGetDevices (package:flutter_tools/src/android/android_device_discovery.dart:78:7)
      <asynchronous suspension>
      #2      PollingDeviceDiscovery._populateDevices (package:flutter_tools/src/device.dart:397:54)
      <asynchronous suspension>
      #3      Future.wait.<anonymous closure> (dart:async/future.dart)
      <asynchronous suspension>
      #4      DeviceManager.getAllConnectedDevices (package:flutter_tools/src/device.dart:163:40)
      <asynchronous suspension>
      #5      DeviceValidator.validate (package:flutter_tools/src/doctor.dart:510:34)
      <asynchronous suspension>
      #6      asyncGuard.<anonymous closure> (package:flutter_tools/src/base/async_guard.dart:111:24)
      <asynchronous suspension>

I have the same issue did anyone have a solution?
flutter doctor -v
[✓] Flutter (Channel stable, 2.2.1, on macOS 11.5.2 20G95 darwin-x64, locale
    en-EG)
    • Flutter version 2.2.1 at /Users/java/Documents/flutter
    • Framework revision 02c026b03c (4 months ago), 2021-05-27 12:24:44 -0700
    • Engine revision 0fdb562ac8
    • Dart version 2.13.1

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/java/Library/Android/sdk
    • Platform android-31, build-tools 31.0.0
    • ANDROID_HOME = /Users/java/Library/Android/sdk
    • ANDROID_SDK_ROOT = :/Users/java/Android/sdk
    • Java binary at: /Library/Internet
      Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java
    • Java version Java(TM) SE Runtime Environment (build 1.8.0_301-b09)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.5.1, Build version 12E507
    • CocoaPods version 1.10.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[!] Android Studio (version 2020.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • 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
    ✗ Unable to find bundled Java version.
    • Try updating or re-installing Android Studio.

[✓] IntelliJ IDEA Community Edition (version 2021.1.3)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 60.1.3
    • Dart plugin version 211.7727

[✓] VS Code (version 1.60.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.26.0

[☠] Connected device (the doctor check crashed)
    ✗ Due to an error, the doctor check did not complete. If the error message
      below is not helpful, please let us know about this issue at
      https://github.com/flutter/flutter/issues.
    ✗ Exception: Unable to run "adb", check your Android SDK installation and
      ANDROID_SDK_ROOT environment variable:
      /Users/java/Library/Android/sdk/platform-tools/adb
    • #0      throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
      #1      AndroidDevices.pollingGetDevices
      (package:flutter_tools/src/android/android_device_discovery.dart:78:7)
      <asynchronous suspension>
      #2      PollingDeviceDiscovery._populateDevices
      (package:flutter_tools/src/device.dart:397:54)
      <asynchronous suspension>
      #3      Future.wait.<anonymous closure> (dart:async/future.dart)
      <asynchronous suspension>
      #4      DeviceManager.getAllConnectedDevices
      (package:flutter_tools/src/device.dart:163:40)
      <asynchronous suspension>
      #5      DeviceValidator.validate
      (package:flutter_tools/src/doctor.dart:510:34)
      <asynchronous suspension>
      #6      asyncGuard.<anonymous closure>
      (package:flutter_tools/src/base/async_guard.dart:111:24)
      <asynchronous suspension>

! Doctor found issues in 2 categories.

Hm I would have thought this was fixed in #74672, available in 2.0, but some of these reports are post-2.0.

I am facing this same issue,
Running flutter on Windows 11
VS code is able to detect the device but flutter doctor throws error on connected devices

I am facing this same issue,
Running flutter on Windows 11
VS code is able to detect the device but flutter doctor throws error on connected devices

What fixes it for me is restarting my PC and making sure no VPN/Proxy is turned on.

I am facing this same issue,
Running flutter on Windows 11
VS code is able to detect the device but flutter doctor throws error on connected devices

What fixes it for me is restarting my PC and making sure no VPN/Proxy is turned on.

I don't have any VPN/Proxy running, and have tried restarting the machine multiple times, did a clean install of android sdk too.
I've noticed once thing I don't have any Android folder in my /Appdata/Local, would this be an issue?
also flutter run gives the same issue

I have same issue.
$ adb devices
* daemon not running; starting now at tcp:5037
* daemon started successfully
List of devices attached
34HDU19B25000414        device

$ flutter devices
Unable to run "adb", check your Android SDK installation and ANDROID_SDK_ROOT environment variable: C:\Users\honza\AppData\Local\Android\Sdk\platform-tools\adb.exe

$ flutter run --verbose
[  +73 ms] executing: [C:\Users\honza\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[  +50 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] 18116933e77adc82f80866c928266a5b4f1ed645
[        ] executing: [C:\Users\honza\flutter/] git tag --points-at 18116933e77adc82f80866c928266a5b4f1ed645
[  +33 ms] Exit code 0 from: git tag --points-at 18116933e77adc82f80866c928266a5b4f1ed645
[        ] 2.5.3
[   +8 ms] executing: [C:\Users\honza\flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[  +18 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/stable
[        ] executing: [C:\Users\honza\flutter/] git ls-remote --get-url origin
[  +16 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[  +92 ms] executing: [C:\Users\honza\flutter/] git rev-parse --abbrev-ref HEAD
[  +18 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] stable
[  +62 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +3 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[   +4 ms] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +61 ms] executing: C:\Users\honza\AppData\Local\Android\Sdk\platform-tools\adb.exe devices -l
[+1144 ms] "flutter run" took 1 231ms.
[  +21 ms] Unable to run "adb", check your Android SDK installation and ANDROID_SDK_ROOT environment variable: C:\Users\honza\AppData\Local\Android\Sdk\platform-tools\adb.exe
[   +1 ms]
           #0      throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
           #1      AndroidDevices.pollingGetDevices (package:flutter_tools/src/android/android_device_discovery.dart:78:7)
           <asynchronous suspension>
           #2      PollingDeviceDiscovery._populateDevices (package:flutter_tools/src/device.dart:413:54)
           <asynchronous suspension>
           #3      Future.wait.<anonymous closure> (dart:async/future.dart)
           <asynchronous suspension>
           #4      DeviceManager.getAllConnectedDevices (package:flutter_tools/src/device.dart:170:40)
           <asynchronous suspension>
           #5      DeviceBasedDevelopmentArtifacts.requiredArtifacts (package:flutter_tools/src/runner/flutter_command.dart:1448:34)
           <asynchronous suspension>
           #6      FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:1228:37)
           <asynchronous suspension>
           #7      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1125:27)
           <asynchronous suspension>
           #8      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #9      CommandRunner.runCommand (package:args/command_runner.dart:209:13)
           <asynchronous suspension>
           #10     FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:288:9)
           <asynchronous suspension>
           #11     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #12     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:236:5)
           <asynchronous suspension>
           #13     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
           <asynchronous suspension>
           #14     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #15     main (package:flutter_tools/executable.dart:92:3)
           <asynchronous suspension>

[ +133 ms] ensureAnalyticsSent: 129ms
[   +1 ms] Running shutdown hooks
[        ] Shutdown hooks complete
[        ] exiting with code 1

$ flutter doctor -v
[√] Flutter (Channel stable, 2.5.3, on Microsoft Windows [Version 10.0.22000.318], locale cs-CZ)
    • Flutter version 2.5.3 at C:\Users\honza\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 18116933e7 (5 weeks ago), 2021-10-15 10:46:35 -0700
    • Engine revision d3ea636dc5
    • Dart version 2.14.4

[√] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at C:\Users\honza\AppData\Local\Android\Sdk
    • Platform android-31, build-tools 31.0.0
    • ANDROID_HOME = C:\Users\honza\\AppData\\Local\Android\\Sdk
    • ANDROID_SDK_ROOT = C:\Users\honza\\AppData\\Local\\Android\\Sdk
    • 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 (x86)\Google\Chrome\Application\chrome.exe

[X] Visual Studio - develop for Windows
    X Visual Studio not installed; this is necessary for Windows development.
      Download at https://visualstudio.microsoft.com/downloads/.
      Please install the "Desktop development with C++" workload, including all of its default components

[√] Android Studio (version 2021.2)
    • 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, 64-bit edition (version 1.62.3)
    • VS Code at C:\Program Files\Microsoft VS Code
    • Flutter extension version 3.28.0

[☠] Connected device (the doctor check crashed)
    X Due to an error, the doctor check did not complete. If the error message below is not helpful, please let us know about this issue at https://github.com/flutter/flutter/issues.
    X Exception: Unable to run "adb", check your Android SDK installation and ANDROID_SDK_ROOT environment variable: C:\Users\honza\AppData\Local\Android\Sdk\platform-tools\adb.exe
    • #0      throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
      #1      AndroidDevices.pollingGetDevices (package:flutter_tools/src/android/android_device_discovery.dart:78:7)
      <asynchronous suspension>
      #2      PollingDeviceDiscovery._populateDevices (package:flutter_tools/src/device.dart:413:54)
      <asynchronous suspension>
      #3      Future.wait.<anonymous closure> (dart:async/future.dart)
      <asynchronous suspension>
      #4      DeviceManager.getAllConnectedDevices (package:flutter_tools/src/device.dart:170:40)
      <asynchronous suspension>
      #5      DeviceValidator.validate (package:flutter_tools/src/doctor.dart:515:34)
      <asynchronous suspension>
      #6      asyncGuard.<anonymous closure> (package:flutter_tools/src/base/async_guard.dart:111:24)
      <asynchronous suspension>

! Doctor found issues in 2 categories.

I've been having the same kind of issues with similar flutter doctor outputs but the error message changes in a weird way if I change the filename of adb.exe to adb.exe.exe. I'm using Windows 10 with WSL2 installed which might be related to the way in which file extensions are  interpreted by flutter. Here is my flutter doctor -v output:
[√] Flutter (Channel stable, 2.8.0, on Microsoft Windows [Version 10.0.19042.1348], locale en-NL)
    • Flutter version 2.8.0 at C:\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision cf44000065 (4 days ago), 2021-12-08 14:06:50 -0800
    • Engine revision 40a99c5951
    • Dart version 2.15.0

[X] Android toolchain - develop for Android devices
    X Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.

[√] 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, 64-bit edition (version 1.62.3)
    • VS Code at C:\Program Files\Microsoft VS Code
    • Flutter extension version 3.29.0

[√] Connected device (2 available)
    • Chrome (web) • chrome • web-javascript • Google Chrome 96.0.4664.93
    • Edge (web)   • edge   • web-javascript • Microsoft Edge 96.0.1054.43

! Doctor found issues in 1 category.

set up environment variable in .bashrc or .zshrc
# replace the user name of  apple
export PATH="/Users/apple/flutter/bin:$PATH"
export ANDROID_HOME="/Users/apple/Library/Android/sdk"
export ANDROID_SDK_ROOT="/Users/apple/Library/Android/sdk"
export ANDROID_AVD_HOME="/Users/apple/.android/avd"
export PATH="$ANDROID_SDK_ROOT/cmdline-tools/latest/bin:$ANDROID_SDK_ROOT/platform-tools:$PATH"

! important
then  reboot your system

Having the same issue. Creating a separate user account and running it there worked, but it still won't work on my primary user.
[✓] Flutter (Channel stable, 2.8.1, on Microsoft Windows [Version 10.0.19044.1503], locale en-NZ)
    • Flutter version 2.8.1 at F:\Android\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 77d935af4d (7 weeks 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 32.1.0-rc1)
    • Android SDK at F:\Android\Sdk\
    • Platform android-32, build-tools 32.1.0-rc1
    • ANDROID_SDK_ROOT = F:\Android\Sdk\
    • Java binary at: E:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.11+9-b60-7590822)
    • All Android licenses accepted.

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

[✓] Android Studio (version 2021.1)
    • Android Studio at E:\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.11+9-b60-7590822)

[✓] IntelliJ IDEA Ultimate Edition (version 2021.1)
    • IntelliJ at E:\Program Files\JetBrains\IntelliJ IDEA 2020.1
    • 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

[☠] Connected device (the doctor check crashed)
    ✗ Due to an error, the doctor check did not complete. If the error message below is not helpful, please let us know
      about this issue at https://github.com/flutter/flutter/issues.
    ✗ Exception: Unable to run "adb", check your Android SDK installation and ANDROID_SDK_ROOT environment variable:
      F:\Android\Sdk\platform-tools\adb.exe
    • #0      throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
      #1      AndroidDevices.pollingGetDevices (package:flutter_tools/src/android/android_device_discovery.dart:75:7)
      <asynchronous suspension>
      #2      PollingDeviceDiscovery._populateDevices (package:flutter_tools/src/device.dart:413:54)
      <asynchronous suspension>
      #3      Future.wait.<anonymous closure> (dart:async/future.dart)
      <asynchronous suspension>
      #4      DeviceManager.getAllConnectedDevices (package:flutter_tools/src/device.dart:170:40)
      <asynchronous suspension>
      #5      DeviceValidator.validate (package:flutter_tools/src/doctor.dart:515:34)
      <asynchronous suspension>
      #6      asyncGuard.<anonymous closure> (package:flutter_tools/src/base/async_guard.dart:111:24)
      <asynchronous suspension>

! Doctor found issues in 1 category.

Check if mobile hotspot is enabled, if it is enabled turn it off and restart android studio. I had a problem with this.

Having the same issue. Creating a separate user account and running it there worked, but it still won't work on my primary user.
[✓] Flutter (Channel stable, 2.8.1, on Microsoft Windows [Version 10.0.19044.1503], locale en-NZ)
    • Flutter version 2.8.1 at F:\Android\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 77d935af4d (7 weeks 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 32.1.0-rc1)
    • Android SDK at F:\Android\Sdk\
    • Platform android-32, build-tools 32.1.0-rc1
    • ANDROID_SDK_ROOT = F:\Android\Sdk\
    • Java binary at: E:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.11+9-b60-7590822)
    • All Android licenses accepted.

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

[✓] Android Studio (version 2021.1)
    • Android Studio at E:\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.11+9-b60-7590822)

[✓] IntelliJ IDEA Ultimate Edition (version 2021.1)
    • IntelliJ at E:\Program Files\JetBrains\IntelliJ IDEA 2020.1
    • 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

[☠] Connected device (the doctor check crashed)
    ✗ Due to an error, the doctor check did not complete. If the error message below is not helpful, please let us know
      about this issue at https://github.com/flutter/flutter/issues.
    ✗ Exception: Unable to run "adb", check your Android SDK installation and ANDROID_SDK_ROOT environment variable:
      F:\Android\Sdk\platform-tools\adb.exe
    • #0      throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
      #1      AndroidDevices.pollingGetDevices (package:flutter_tools/src/android/android_device_discovery.dart:75:7)
      <asynchronous suspension>
      #2      PollingDeviceDiscovery._populateDevices (package:flutter_tools/src/device.dart:413:54)
      <asynchronous suspension>
      #3      Future.wait.<anonymous closure> (dart:async/future.dart)
      <asynchronous suspension>
      #4      DeviceManager.getAllConnectedDevices (package:flutter_tools/src/device.dart:170:40)
      <asynchronous suspension>
      #5      DeviceValidator.validate (package:flutter_tools/src/doctor.dart:515:34)
      <asynchronous suspension>
      #6      asyncGuard.<anonymous closure> (package:flutter_tools/src/base/async_guard.dart:111:24)
      <asynchronous suspension>

! Doctor found issues in 1 category.

Check if mobile hotspot is enabled, if it is enabled turn it off and restart android studio. I had a problem with this.

For Me.
The problem is the antivirus program. It denied access to starting the flutter daemon on port 5037. I disabled/exited the antivirus program. Then it works.

set up environment variable in .bashrc or .zshrc
# replace the user name of  apple
export PATH="/Users/apple/flutter/bin:$PATH"
export ANDROID_HOME="/Users/apple/Library/Android/sdk"
export ANDROID_SDK_ROOT="/Users/apple/Library/Android/sdk"
export ANDROID_AVD_HOME="/Users/apple/.android/avd"
export PATH="$ANDROID_SDK_ROOT/cmdline-tools/latest/bin:$ANDROID_SDK_ROOT/platform-tools:$PATH"

! important then reboot your system

It works!
Important to reboot!

I think the action item for this bug is to differentiate between failing to find adb binary and we ran adb, but it failed. In the latter case, we should surface to the user adb's STDERR.

PS D:\FLUTTER PROJEK\New folder\Pertemuan 13> flutter devices
Unable to run "adb", check your Android SDK installation and ANDROID_SDK_ROOT environment variable: C:\platform-tools\adb.exe
PS D:\FLUTTER PROJEK\New folder\Pertemuan 13> flutter doctor -v
[√] Flutter (Channel stable, 3.0.2, on Microsoft Windows [Version 10.0.19043.1706], locale en-ID)
• Flutter version 3.0.2 at C:\flutter\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision cd41fdd495 (2 weeks ago), 2022-06-08 09:52:13 -0700
• Engine revision f15f824b57
• Dart version 2.17.3
• DevTools version 2.12.2
Checking Android licenses is taking an unexpectedly long time...[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at C:
• Platform android-32, build-tools 30.0.3
• Java binary at: C:\Program Files\Java\jdk-11.0.14\bin\java
• Java version Java(TM) SE Runtime Environment 18.9 (build 11.0.14+8-LTS-263)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[X] Visual Studio - develop for Windows
X Visual Studio not installed; this is necessary for Windows development.
Download at https://visualstudio.microsoft.com/downloads/.
Please install the "Desktop development with C++" workload, including all of its default components
[!] Android Studio (not installed)
• Android Studio not found; download from https://developer.android.com/studio/index.html
(or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).
[√] VS Code (version 1.68.1)
• VS Code at C:\Users\XiM0N\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.42.0
[☠] Connected device (the doctor check crashed)
X Due to an error, the doctor check did not complete. If the error message below is not helpful, please let us know about this issue at
https://github.com/flutter/flutter/issues.
X Exception: Unable to run "adb", check your Android SDK installation and ANDROID_SDK_ROOT environment variable: C:\platform-tools\adb.exe
• #0      throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
#1      AndroidDevices.pollingGetDevices (package:flutter_tools/src/android/android_device_discovery.dart:75:7)

#2      PollingDeviceDiscovery._populateDevices (package:flutter_tools/src/device.dart:435:54)

#3      Future.wait. (dart:async/future.dart:521:21)

#4      DeviceManager.getAllConnectedDevices (package:flutter_tools/src/device.dart:191:40)

#5      DeviceValidator.validate (package:flutter_tools/src/doctor.dart:561:34)

#6      Future.any.onValue (dart:async/future.dart:611:5)

[√] HTTP Host Availability
• All required HTTP hosts are available
! Doctor found issues in 3 categories.

For me (on Windows), the adb daemon was unable to start (when trying adb devices). Doing the following via an Admin CMD worked: net stop winnat, then net start winnat. Then try again.

work for me, nice

For me (on Windows), the adb daemon was unable to start (when trying adb devices). Doing the following via an Admin CMD worked: net stop winnat, then net start winnat. Then try again.
work for me, nice

For me (on Windows), the adb daemon was unable to start (when trying adb devices). Doing the following via an Admin CMD worked: net stop winnat, then net start winnat. Then try again.

this works for me, nice

had the them issue, the solution is as follows:
https://www.geeksforgeeks.org/fix-unable-to-locate-adb-within-sdk-in-android-studio/

I suddenly had the same problem.
I deleted /Users/$USER/Library/Android/sdk and installed it.

Rename /Users/$USER/Library/Android to /Users/$USER/Library/Android_not_work
Uninstall Android Studio from JetBrains ToolBox
Install Android Studio from JetBrains ToolBox
You will be prompted to install /Users/$USER/Library/Android/sdk when you start Android Studio for the first time, so proceed with the installation.

I've tried and unfortunately that doesn't help either. I ran it on a second computer where I have windows 10.

All the solutions mentioned above doesn't work on windows 11
I can't use my old laptop anymore and don't want to downgrade windows version just for flutter.
Anyone else able to get around this on windows 11?

For me (on Windows), the adb daemon was unable to start (when trying adb devices). Doing the following via an Admin CMD worked: net stop winnat, then net start winnat. Then try again.

this worked for me after flutter upgrade changed things

For Me. The problem is the antivirus program. It denied access to starting the flutter daemon on port 5037. I disabled/exited the antivirus program. Then it works.

this one work for me, thanks a lot

I got the same problem
$ flutter devices
Unable to run "adb", check your Android SDK installation and ANDROID_SDK_ROOT environment variable: ........

then I tried to call adb devices  directly
$ adb devices
* daemon not running; starting now at tcp:5037
ADB server didn't ACK
Full server startup log: /tmp/adb.1000.log
Server had pid: 4366
--- adb starting (pid 4366) ---
04-15 20:53:49.072  4366  4366 I adb     : main.cpp:63 Android Debug Bridge version 1.0.41
04-15 20:53:49.072  4366  4366 I adb     : main.cpp:63 Version 35.0.1-11580240
04-15 20:53:49.072  4366  4366 I adb     : main.cpp:63 Installed as /home/USER/Android/Sdk/platform-tools/adb
04-15 20:53:49.072  4366  4366 I adb     : main.cpp:63 Running on Linux 6.5.0-27-generic (x86_64)
04-15 20:53:49.072  4366  4366 I adb     : main.cpp:63
04-15 20:53:49.072  4366  4366 I adb     : auth.cpp:416 adb_auth_init...
04-15 20:53:49.072  4366  4366 I adb     : auth.cpp:152 loaded new key from '/home/USER/.android/adbkey' with fingerprint D3B763B92243229AD5548678C130B315DFACF638D551D444061E80D1E902552E
04-15 20:53:49.072  4366  4366 I adb     : auth.cpp:391 adb_auth_inotify_init...
04-15 20:53:50.072  4366  4366 E adb     : usb_libusb.cpp:571 failed to open device: Access denied (insufficient permissions)
04-15 20:53:50.072  4366  4366 I adb     : transport.cpp:1150 03670dc40404: connection terminated: failed to open device: Access denied (insufficient permissions)

the problem could be I dont have enough permission, so I changed the owner of android sdk folder by command
sudo chown -hR <YOUR-USER> ~/Android/Sdk/
then the problem gone
p$ flutter devices
Found 3 connected devices:
  M2003J15SC (mobile) • 03670dc40404 • android-arm64  • Android 12 (API 31)
  Linux (desktop)     • linux        • linux-x64      • Linux Mint 21.3 6.5.0-27-generic
  Chrome (web)        • chrome       • web-javascript • Google Chrome 123.0.6312.122

Run "flutter emulators" to list and start any available device emulators.

I have gone through all suggestion and I still have the same problem:
[✓] Flutter (Channel stable, 3.22.1, on Ubuntu 22.04.4 LTS 6.5.0-41-generic,
    locale en_NG)
    • Flutter version 3.22.1 on channel stable at
      /home/adetorodev/snap/flutter/common/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision a14f74ff3a (6 weeks ago), 2024-05-22 11:08:21 -0500
    • Engine revision 55eae6864b
    • Dart version 3.4.1
    • DevTools version 2.34.3

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /home/adetorodev/Android/Sdk
    • Platform android-34-ext8, build-tools 34.0.0
    • ANDROID_HOME = /home/adetorodev/Android/Sdk
    • ANDROID_SDK_ROOT = /home/adetorodev/Android/Sdk
    • Java binary at: /snap/android-studio/157/jbr/bin/java
    • Java version OpenJDK Runtime Environment (build
      17.0.10+0-17.0.10b1087.21-11572160)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at google-chrome

[✓] Linux toolchain - develop for Linux desktop
    • clang version 10.0.0-4ubuntu1
    • cmake version 3.16.3
    • ninja version 1.10.0
    • pkg-config version 0.29.1

[✓] Android Studio (version 2023.3)
    • Android Studio at /snap/android-studio/157
    • Flutter plugin version 80.0.1
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build
      17.0.10+0-17.0.10b1087.21-11572160)

[✓] IntelliJ IDEA Ultimate Edition (version 2024.1)
    • IntelliJ at /snap/intellij-idea-ultimate/510
    • 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

[✓] VS Code (version 1.90.1)
    • VS Code at /usr/share/code
    • Flutter extension version 3.90.0

[☠] Connected device (the doctor check crashed)
    ✗ Due to an error, the doctor check did not complete. If the error message
      below is not helpful, please let us know about this issue at
      https://github.com/flutter/flutter/issues.
    ✗ Error: Unable to run "adb", check your Android SDK installation and
      ANDROID_HOME environment variable:
      /home/adetorodev/Android/Sdk/platform-tools/adb
    • #0      throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
      #1      AndroidDevices.pollingGetDevices
      (package:flutter_tools/src/android/android_device_discovery.dart:75:7)
      <asynchronous suspension>
      #2      PollingDeviceDiscovery._populateDevices
      (package:flutter_tools/src/device.dart:547:36)
      <asynchronous suspension>
      #3      Future.wait.<anonymous closure> (dart:async/future.dart:524:21)
      <asynchronous suspension>
      #4      DeviceManager.refreshAllDevices
      (package:flutter_tools/src/device.dart:217:40)
      <asynchronous suspension>
      #5      DeviceValidator.validate
      (package:flutter_tools/src/doctor.dart:741:34)
      <asynchronous suspension>
      #6      Future.any.onValue (dart:async/future.dart:618:5)
      <asynchronous suspension>

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.

same issue

I encountered the same problem in Ubuntu 22.04.4, using vs code, after connecting my smartphone using a type-c cable.
It immediately shows a message saying:
Flutter daemon has terminated.
For me the solution was as follows:
step 1:
go to the location of adb executable file
mine was in: ~/Android/sdk/platform-tools
step 2:
then - in terminal after navigating to the previous location - run sudo ./adb devices
step 3:
The previous command will trigger a message on your phone asking you to authorize debugging
Check the 'Always allow' box
then proceed.
step 4:
Congrats, now the problem is gone.

I had the same problem after upgrading Android Studio. I'm using Windows 10.
What helped me was to uninstall and re-install  Android-SDK Platform-Tools.
(1)
In Android Studio, open SDK Manager.
Open SDK Tools.
Uncheck ⬜ Android-SDK Platform-Tools.
Apply changes.
Check that C:\Users\Username\AppData\Local\Android\Sdk folder was deleted (normally it should).
Go back to Android Studio and check ✅ Android-SDK Platform-Tools.
Apply changes
(2)
Reboot the system (required)
After this, flutter doctor should report OK.

sudo ./adb devices

thx, it helped me a lot

I encountered the same problem in Ubuntu 22.04.4, using vs code, after connecting my smartphone using a type-c cable. It immediately shows a message saying: Flutter daemon has terminated.
For me the solution was as follows:
step 1:
go to the location of adb executable file mine was in: ~/Android/sdk/platform-tools
step 2:
then - in terminal after navigating to the previous location - run sudo ./adb devices
step 3: The previous command will trigger a message on your phone asking you to authorize debugging Check the 'Always allow' box then proceed.
step 4: Congrats, now the problem is gone.

But this is only a workaround. That needs to be done every single time. I guess I'll have to add that to my startup script, but would be cool if this was automatic lol...

The debug was working until Friday 9th August. To me, the second step won't work neither:
* daemon not running; starting now at tcp:5037
ADB server didn't ACK
Full server startup log: /tmp/adb.1000.log
Server had pid: 11013
--- adb starting (pid 11013) ---
08-12 16:04:41.966 11013 11013 I adb     : main.cpp:63 Android Debug Bridge version 1.0.41
08-12 16:04:41.966 11013 11013 I adb     : main.cpp:63 Version 35.0.2-12147458
08-12 16:04:41.966 11013 11013 I adb     : main.cpp:63 Installed as /home/nestor/bin/android/sdk/platform-tools/adb
08-12 16:04:41.966 11013 11013 I adb     : main.cpp:63 Running on Linux 6.10.3-1-default (x86_64)
08-12 16:04:41.966 11013 11013 I adb     : main.cpp:63
08-12 16:04:41.967 11013 11013 I adb     : auth.cpp:416 adb_auth_init...
08-12 16:04:41.967 11013 11013 I adb     : auth.cpp:152 loaded new key from '/home/nestor/.android/adbkey' with fingerprint D70F982C70EE5640DD66ACFEB963D0B49D8208B5EFE499FFE20AE0A1F33233AF
08-12 16:04:41.967 11013 11013 I adb     : auth.cpp:391 adb_auth_inotify_init...
08-12 16:04:41.967 11013 11013 I adb     : udp_socket.cpp:170 AdbUdpSocket fd=16
08-12 16:04:41.967 11013 11013 I adb     : udp_socket.cpp:170 AdbUdpSocket fd=18
08-12 16:04:41.967 11013 11013 I adb     : udp_socket.cpp:274 SetMulticastOutboundInterface for index=2
08-12 16:04:41.967 11013 11013 I adb     : udp_socket.cpp:533 bind endpoint=0.0.0.0:5353
08-12 16:04:41.967 11013 11013 I adb     : udp_socket.cpp:274 SetMulticastOutboundInterface for index=2
08-12 16:04:41.968 11013 11013 I adb     : udp_socket.cpp:558 bind endpoint=[0000:0000:0000:0000:0000:0000:0000:0000]:5353 scope_id=0
08-12 16:04:41.968 11013 11013 I adb     : udp_socket.cpp:170 AdbUdpSocket fd=19
08-12 16:04:41.968 11013 11013 I adb     : udp_socket.cpp:170 AdbUdpSocket fd=20
08-12 16:04:41.968 11013 11013 I adb     : udp_socket.cpp:274 SetMulticastOutboundInterface for index=3
08-12 16:04:41.968 11013 11013 I adb     : udp_socket.cpp:533 bind endpoint=0.0.0.0:5353
08-12 16:04:41.968 11013 11013 I adb     : udp_socket.cpp:274 SetMulticastOutboundInterface for index=3
08-12 16:04:41.968 11013 11013 I adb     : udp_socket.cpp:558 bind endpoint=[0000:0000:0000:0000:0000:0000:0000:0000]:5353 scope_id=0
08-12 16:04:41.968 11013 11013 I adb     : udp_socket.cpp:170 AdbUdpSocket fd=21
08-12 16:04:41.968 11013 11013 I adb     : udp_socket.cpp:274 SetMulticastOutboundInterface for index=4
08-12 16:04:41.968 11013 11013 I adb     : udp_socket.cpp:533 bind endpoint=0.0.0.0:5353
08-12 16:04:41.968 11013 11013 I adb     : udp_socket.cpp:170 AdbUdpSocket fd=17
08-12 16:04:41.968 11013 11013 I adb     : udp_socket.cpp:274 SetMulticastOutboundInterface for index=5
08-12 16:04:41.968 11013 11013 I adb     : udp_socket.cpp:533 bind endpoint=0.0.0.0:5353
08-12 16:04:41.968 11013 11013 I adb     : udp_socket.cpp:170 AdbUdpSocket fd=23
08-12 16:04:41.968 11013 11013 I adb     : udp_socket.cpp:274 SetMulticastOutboundInterface for index=6
08-12 16:04:41.968 11013 11013 I adb     : udp_socket.cpp:533 bind endpoint=0.0.0.0:5353
08-12 16:04:41.968 11013 11013 I adb     : udp_socket.cpp:170 AdbUdpSocket fd=24
08-12 16:04:41.968 11013 11013 I adb     : udp_socket.cpp:274 SetMulticastOutboundInterface for index=7
08-12 16:04:41.968 11013 11013 I adb     : udp_socket.cpp:533 bind endpoint=0.0.0.0:5353
08-12 16:04:41.968 11013 11013 I adb     : udp_socket.cpp:170 AdbUdpSocket fd=22
08-12 16:04:41.968 11013 11013 I adb     : udp_socket.cpp:274 SetMulticastOutboundInterface for index=8
08-12 16:04:41.968 11013 11013 I adb     : udp_socket.cpp:533 bind endpoint=0.0.0.0:5353
08-12 16:04:41.968 11013 11013 I adb     : udp_socket.cpp:170 AdbUdpSocket fd=26
08-12 16:04:41.968 11013 11013 I adb     : udp_socket.cpp:274 SetMulticastOutboundInterface for index=9
08-12 16:04:41.968 11013 11013 I adb     : udp_socket.cpp:533 bind endpoint=0.0.0.0:5353
08-12 16:04:41.968 11013 11013 I adb     : udp_socket.cpp:170 AdbUdpSocket fd=27
08-12 16:04:41.968 11013 11013 I adb     : udp_socket.cpp:274 SetMulticastOutboundInterface for index=10
08-12 16:04:41.968 11013 11013 I adb     : udp_socket.cpp:533 bind endpoint=0.0.0.0:5353
08-12 16:04:41.968 11013 11013 I adb     : udp_socket.cpp:170 AdbUdpSocket fd=25
08-12 16:04:41.968 11013 11013 I adb     : udp_socket.cpp:274 SetMulticastOutboundInterface for index=12
08-12 16:04:41.968 11013 11013 I adb     : udp_socket.cpp:558 bind endpoint=[0000:0000:0000:0000:0000:0000:0000:0000]:5353 scope_id=0
08-12 16:04:41.968 11013 11013 I adb     : udp_socket.cpp:170 AdbUdpSocket fd=29
08-12 16:04:41.968 11013 11013 I adb     : udp_socket.cpp:274 SetMulticastOutboundInterface for index=14
08-12 16:04:41.968 11013 11013 I adb     : udp_socket.cpp:558 bind endpoint=[0000:0000:0000:0000:0000:0000:0000:0000]:5353 scope_id=0
08-12 16:04:41.968 11013 11013 I adb     : udp_socket.cpp:170 AdbUdpSocket fd=30
08-12 16:04:41.968 11013 11013 I adb     : udp_socket.cpp:274 SetMulticastOutboundInterface for index=16
08-12 16:04:41.968 11013 11013 I adb     : udp_socket.cpp:558 bind endpoint=[0000:0000:0000:0000:0000:0000:0000:0000]:5353 scope_id=0
08-12 16:04:41.968 11013 11013 I adb     : udp_socket.cpp:170 AdbUdpSocket fd=31
08-12 16:04:41.968 11013 11013 I adb     : udp_socket.cpp:274 SetMulticastOutboundInterface for index=18
08-12 16:04:41.968 11013 11013 I adb     : udp_socket.cpp:558 bind endpoint=[0000:0000:0000:0000:0000:0000:0000:0000]:5353 scope_id=0
08-12 16:04:42.967 11013 11013 E adb     : usb_libusb.cpp:598 failed to open device: Access denied (insufficient permissions)
08-12 16:04:42.967 11013 11013 I adb     : transport.cpp:1153 N0AA002887JC2800367: connection terminated: failed to open device: Access denied (insufficient permissions)

* failed to start daemon
adb: failed to check server version: cannot connect to daemon

Thanks bro. You saved my life.

authors: AfrahAsif ElhassanGhannmi HeyItsJono Kofa1 LeoAndo MomsSpughetti Muhiddin2007 Noojuno ShafiMunshi TrisCC YongXinMON adetorodev ansidev bunny-pu christopherfujino chunweii davidefiozzi edutilos6666 flowerlake himanshuMaheshwari2311 honzahajek initdc jmagman laurentcodes luoqiang110 mahmoudalaa97 neoacevedo pedromassangocode slefter timaskraft tomesparon vuhung3990 yuguansu zuldanishh


text:
Wrong KeyId for digits on Windows with LogicalKeyboardKey.

Steps to Reproduce

Run this project on Windows Desktop : https://gist.github.com/gaetschwartz/7cf05a7907a1de9a4c28395a264e0897
Press a digit on your keyboard. Notice that the keyId seems to be added to 0x10700000000 when released.

Key
Expected code
Actual code

Digit1
0x31
0x10700000031

Digit2
0x32
0x10700000032

Digit3
0x33
0x10700000033

Logs

[√] Flutter (Channel dev, 1.26.0-17.1.pre, on Microsoft Windows [Version 10.0.19042.746], locale en-US)
    • Flutter version 1.26.0-17.1.pre at C:\Users\Gaetan\Developer\src\flutter
    • Framework revision c40e5294dd (4 days ago), 2021-01-29 08:44:18 -0800
    • Engine revision 5d3477eab4
    • Dart version 2.12.0 (build 2.12.0-259.0.dev)

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at C:\Users\Gaetan\AppData\Local\Android\sdk
    • Platform android-30, build-tools 30.0.2
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6842174)
    • All Android licenses accepted.

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

[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.8.4)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.8.30907.101
    • Windows 10 SDK version 10.0.18362.0

[√] Android Studio (version 4.1.0)
    • 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.8+10-b944.6842174)

[√] IntelliJ IDEA Community Edition (version 2020.3)
    • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2020.2.3
    • 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

[√] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.19042.746]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 88.0.4324.104
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 88.0.705.50

• No issues found!

Analyzing flutter_application_3...
No issues found! (ran in 1.9s)

[  +60 ms] executing: [C:\Users\Gaetan\Developer\src\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[  +55 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] c40e5294dda34d04cd222dfdf765f171e12e4a8d
[        ] executing: [C:\Users\Gaetan\Developer\src\flutter/] git tag --points-at c40e5294dda34d04cd222dfdf765f171e12e4a8d
[  +51 ms] Exit code 0 from: git tag --points-at c40e5294dda34d04cd222dfdf765f171e12e4a8d
[        ] 1.26.0-17.1.pre
[  +31 ms] executing: [C:\Users\Gaetan\Developer\src\flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[  +35 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/dev
[        ] executing: [C:\Users\Gaetan\Developer\src\flutter/] git ls-remote --get-url origin
[  +33 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[  +58 ms] executing: [C:\Users\Gaetan\Developer\src\flutter/] git rev-parse --abbrev-ref HEAD
[  +33 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] dev
[  +70 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +2 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[  +15 ms] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[  +18 ms] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[   +6 ms] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[   +7 ms] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +55 ms] executing: C:\Users\Gaetan\AppData\Local\Android\sdk\platform-tools\adb.exe devices -l
[  +34 ms] List of devices attached
[   +4 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[   +5 ms] Downloading Web SDK...
[ +290 ms] Content https://storage.googleapis.com/flutter_infra/flutter/5d3477eab415fbcc3d58624b07f0a768f8208f98/flutter-web-sdk-windows-x64.zip md5 hash: lFj6OMDddFHNFFVhbP7aQg==
[+2705 ms] Downloading Web SDK... (completed in 2,986ms)
[+2943 ms] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +56 ms] Multiple devices found:
[  +17 ms] Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.19042.746]
[        ] Chrome (web)      • chrome  • web-javascript • Google Chrome 88.0.4324.104
[        ] Edge (web)        • edge    • web-javascript • Microsoft Edge 88.0.705.50
[        ] [1]: Windows (windows)
[        ] [2]: Chrome (chrome)
[        ] [3]: Edge (edge)
[   +1 ms] Please choose one (To quit, press "q/Q")
[        ] :
[+105570 ms] 1
[   +9 ms] Skipping pub get: version match.
[  +91 ms] Generating C:\Users\Gaetan\Developer\Projects\flutter_application_3\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java
[  +61 ms] Initializing file store
[   +8 ms] Skipping target: gen_localizations
[   +8 ms] complete
[   +2 ms] Launching lib\main.dart on Windows in debug mode...
[   +3 ms] C:\Users\Gaetan\Developer\src\flutter\bin\cache\dart-sdk\bin\dart.exe --disable-dart-dev
C:\Users\Gaetan\Developer\src\flutter\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root
C:\Users\Gaetan\Developer\src\flutter\bin\cache\artifacts\engine\common\flutter_patched_sdk/ --incremental --target=flutter --debugger-module-names
--experimental-emit-debug-metadata -DFLUTTER_WEB_AUTO_DETECT=true --output-dill C:\Users\Gaetan\AppData\Local\Temp\flutter_tools.555bdf95\flutter_tool.4cf7b720\app.dill --packages
C:\Users\Gaetan\Developer\Projects\flutter_application_3\.dart_tool\package_config.json -Ddart.vm.profile=false -Ddart.vm.product=false --enable-asserts --track-widget-creation
--filesystem-scheme org-dartlang-root --initialize-from-dill build\c075001b96339384a97db4862b8ab8db.cache.dill.track.dill
[  +31 ms] executing: C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe -format json -products * -utf8 -latest -version 16 -requires
Microsoft.VisualStudio.Workload.NativeDesktop Microsoft.VisualStudio.Component.VC.Tools.x86.x64 Microsoft.VisualStudio.Component.VC.CMake.Project
[  +30 ms] Exit code 0 from: C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe -format json -products * -utf8 -latest -version 16 -requires
Microsoft.VisualStudio.Workload.NativeDesktop Microsoft.VisualStudio.Component.VC.Tools.x86.x64 Microsoft.VisualStudio.Component.VC.CMake.Project
[        ] [
             {
               "instanceId": "ddb775c4",
               "installDate": "2020-11-02T08:35:49Z",
               "installationName": "VisualStudio/16.8.4+30907.101",
               "installationPath": "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community",
               "installationVersion": "16.8.30907.101",
               "productId": "Microsoft.VisualStudio.Product.Community",
               "productPath": "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Common7\\IDE\\devenv.exe",
               "state": 4294967295,
               "isComplete": true,
               "isLaunchable": true,
               "isPrerelease": false,
               "isRebootRequired": false,
               "displayName": "Visual Studio Community 2019",
               "description": "Powerful IDE, free for students, open-source contributors, and individuals",
               "channelId": "VisualStudio.16.Release",
               "channelUri": "https://aka.ms/vs/16/release/channel",
               "enginePath": "C:\\Program Files (x86)\\Microsoft Visual Studio\\Installer\\resources\\app\\ServiceHub\\Services\\Microsoft.VisualStudio.Setup.Service",
               "releaseNotes": "https://go.microsoft.com/fwlink/?LinkId=660893#16.8.4",
               "thirdPartyNotices": "https://go.microsoft.com/fwlink/?LinkId=660909",
               "updateDate": "2021-01-28T11:54:16.6785795Z",
               "catalog": {
                 "buildBranch": "d16.8",
                 "buildVersion": "16.8.30907.101",
                 "id": "VisualStudio/16.8.4+30907.101",
                 "localBuild": "build-lab",
                 "manifestName": "VisualStudio",
                 "manifestType": "installer",
                 "productDisplayVersion": "16.8.4",
                 "productLine": "Dev16",
                 "productLineVersion": "2019",
                 "productMilestone": "RTW",
                 "productMilestoneIsPreRelease": "False",
                 "productName": "Visual Studio",
                 "productPatchVersion": "4",
                 "productPreReleaseMilestoneSuffix": "1.0",
                 "productSemanticVersion": "16.8.4+30907.101",
                 "requiredEngineVersion": "2.8.3267.30329"
               },
               "properties": {
                 "campaignId": "",
                 "channelManifestId": "VisualStudio.16.Release/16.8.4+30907.101",
                 "nickname": "",
                 "setupEngineFilePath": "C:\\Program Files (x86)\\Microsoft Visual Studio\\Installer\\vs_installershell.exe"
               }
             }
           ]
[  +19 ms] Building Windows application...
[  +12 ms] <- compile package:flutter_application_3/main.dart
[   +1 ms] executing: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe -S
C:\Users\Gaetan\Developer\Projects\flutter_application_3\windows -B build\windows -G Visual Studio 16 2019
[  +58 ms] -- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.19042.
[  +34 ms] -- Configuring done
[  +57 ms] -- Generating done
[   +3 ms] -- Build files have been written to: C:/Users/Gaetan/Developer/Projects/flutter_application_3/build/windows
[   +7 ms] executing: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe --build build\windows --config
Debug --target INSTALL --verbose
[ +118 ms] Microsoft (R) Build Engine version 16.8.3+39993bd9d for .NET Framework
[   +1 ms] Copyright (C) Microsoft Corporation. All rights reserved.
[  +52 ms] Build started 02-Feb-21 20:40:20.
[ +218 ms] Project "C:\Users\Gaetan\Developer\Projects\flutter_application_3\build\windows\INSTALL.vcxproj" on node 1 (default targets).
[        ] Project "C:\Users\Gaetan\Developer\Projects\flutter_application_3\build\windows\INSTALL.vcxproj" (1) is building
"C:\Users\Gaetan\Developer\Projects\flutter_application_3\build\windows\ZERO_CHECK.vcxproj" (2) on node 1 (default targets).
[   +9 ms] InitializeBuildStatus:
[        ]   Creating "x64\Debug\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
[  +17 ms] CustomBuild:
[   +2 ms]   All outputs are up-to-date.
[  +29 ms] FinalizeBuildStatus:
[        ]   Deleting file "x64\Debug\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild".
[        ]   Touching "x64\Debug\ZERO_CHECK\ZERO_CHECK.tlog\ZERO_CHECK.lastbuildstate".
[        ] Done Building Project "C:\Users\Gaetan\Developer\Projects\flutter_application_3\build\windows\ZERO_CHECK.vcxproj" (default targets).
[  +89 ms] Project "C:\Users\Gaetan\Developer\Projects\flutter_application_3\build\windows\INSTALL.vcxproj" (1) is building
"C:\Users\Gaetan\Developer\Projects\flutter_application_3\build\windows\ALL_BUILD.vcxproj" (3) on node 1 (default targets).
[        ] Project "C:\Users\Gaetan\Developer\Projects\flutter_application_3\build\windows\ALL_BUILD.vcxproj" (3) is building
"C:\Users\Gaetan\Developer\Projects\flutter_application_3\build\windows\runner\flutter_application_3.vcxproj" (4) on node 1 (default targets).
[        ] Project "C:\Users\Gaetan\Developer\Projects\flutter_application_3\build\windows\runner\flutter_application_3.vcxproj" (4) is building
"C:\Users\Gaetan\Developer\Projects\flutter_application_3\build\windows\flutter\flutter_assemble.vcxproj" (5) on node 1 (default targets).
[   +8 ms] InitializeBuildStatus:
[        ]   Creating "x64\Debug\flutter_assemble\flutter_assemble.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
[        ] CustomBuild:
[        ]   "The build of 'C:\Users\Gaetan\Developer\Projects\flutter_application_3\build\windows\CMakeFiles\4bdb87ddef31ca86da4ef963de7853cb\flutter_assemble.rule' depends on
'C:\USERS\GAETAN\DEVELOPER\PROJECTS\FLUTTER_APPLICATION_3\WINDOWS\FLUTTER\EPHEMERAL\FLUTTER_WINDOWS.DLL' which is produced by the build of
'C:\Users\Gaetan\Developer\Projects\flutter_application_3\build\windows\CMakeFiles\3339c7d724da7bbac3964e1067c73a09\flutter_windows.dll.rule'. The items cannot be built in
parallel."
[  +65 ms]   Generating C:/Users/Gaetan/Developer/Projects/flutter_application_3/windows/flutter/ephemeral/flutter_windows.dll,
C:/Users/Gaetan/Developer/Projects/flutter_application_3/windows/flutter/ephemeral/flutter_export.h,
C:/Users/Gaetan/Developer/Projects/flutter_application_3/windows/flutter/ephemeral/flutter_windows.h,
C:/Users/Gaetan/Developer/Projects/flutter_application_3/windows/flutter/ephemeral/flutter_messenger.h,
C:/Users/Gaetan/Developer/Projects/flutter_application_3/windows/flutter/ephemeral/flutter_plugin_registrar.h,
C:/Users/Gaetan/Developer/Projects/flutter_application_3/windows/flutter/ephemeral/flutter_texture_registrar.h,
C:/Users/Gaetan/Developer/Projects/flutter_application_3/windows/flutter/ephemeral/cpp_client_wrapper/core_implementations.cc,
C:/Users/Gaetan/Developer/Projects/flutter_application_3/windows/flutter/ephemeral/cpp_client_wrapper/standard_codec.cc,
C:/Users/Gaetan/Developer/Projects/flutter_application_3/windows/flutter/ephemeral/cpp_client_wrapper/plugin_registrar.cc,
C:/Users/Gaetan/Developer/Projects/flutter_application_3/windows/flutter/ephemeral/cpp_client_wrapper/flutter_engine.cc,
C:/Users/Gaetan/Developer/Projects/flutter_application_3/windows/flutter/ephemeral/cpp_client_wrapper/flutter_view_controller.cc, _phony_
[ +928 ms]   [  +56 ms] executing: [C:\Users\Gaetan\Developer\src\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[  +52 ms]   [  +69 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ]   [        ] c40e5294dda34d04cd222dfdf765f171e12e4a8d
[        ]   [        ] executing: [C:\Users\Gaetan\Developer\src\flutter/] git tag --points-at c40e5294dda34d04cd222dfdf765f171e12e4a8d
[  +50 ms]   [  +50 ms] Exit code 0 from: git tag --points-at c40e5294dda34d04cd222dfdf765f171e12e4a8d
[        ]   [        ] 1.26.0-17.1.pre
[  +30 ms]   [  +31 ms] executing: [C:\Users\Gaetan\Developer\src\flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[  +44 ms]   [  +43 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[   +1 ms]   [        ] origin/dev
[        ]   [        ] executing: [C:\Users\Gaetan\Developer\src\flutter/] git ls-remote --get-url origin
[  +36 ms]   [  +38 ms] Exit code 0 from: git ls-remote --get-url origin
[        ]   [        ] https://github.com/flutter/flutter.git
[  +69 ms]   [  +69 ms] executing: [C:\Users\Gaetan\Developer\src\flutter/] git rev-parse --abbrev-ref HEAD
[  +41 ms]   [  +41 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ]   [        ] dev
[  +68 ms]   [  +68 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +2 ms]   [   +3 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[   +8 ms]   [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +36 ms]   [  +46 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[   +2 ms]   [        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[   +1 ms]   [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[   +8 ms]   [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'PubDependencies' is not required, skipping update.
[  +44 ms]   [  +60 ms] Initializing file store
[  +17 ms]   [  +17 ms] Skipping target: gen_localizations
[   +5 ms]   [   +5 ms] unpack_windows: Starting due to {}
[ +179 ms]   [ +178 ms] kernel_snapshot: Starting due to {}
[   +2 ms]   [   +2 ms] unpack_windows: Complete
[+2284 ms]   [+2283 ms] C:\Users\Gaetan\Developer\src\flutter\bin\cache\dart-sdk\bin\dart.exe --disable-dart-dev
C:\Users\Gaetan\Developer\src\flutter\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root
C:\Users\Gaetan\Developer\src\flutter\bin\cache\artifacts\engine\common\flutter_patched_sdk/ --target=flutter --no-print-incremental-dependencies
-DFLUTTER_WEB_AUTO_DETECT\Users\Gaetan\Developer\Projects\flutter_application_3\.dart_tool\package_config.json -Ddart.vm.profile=false -Ddart.vm.product=false --enable-asserts
--packages C:\Users\Gaetan\Developer\Projects\flutter_application_3\.dart_tool\package_config.json --output-dill
C:\Users\Gaetan\Developer\Projects\flutter_application_3\.dart_tool\flutter_build\ba02bbffb1729791b34b1162fd8c0579\app.dill --depfile
C:\Users\Gaetan\Developer\Projects\flutter_application_3\.dart_tool\flutter_build\ba02bbffb1729791b34b1162fd8c0579\kernel_snapshot.d package:flutter_application_3/main.dart
[+5478 ms]   [+5479 ms] kernel_snapshot: Complete
[ +357 ms]   [ +357 ms] debug_bundle_windows_assets: Starting due to {}
[  +89 ms]   [  +89 ms] debug_bundle_windows_assets: Complete
[ +346 ms]   [ +346 ms] Persisting file store
[   +7 ms]   [   +7 ms] Done persisting file store
[   +5 ms]   [   +5 ms] build succeeded.
[   +6 ms]   [   +6 ms] "flutter assemble" took 8,921ms.
[  +62 ms]   [  +62 ms] ensureAnalyticsSent: 59ms
[   +1 ms]   [   +1 ms] Running shutdown hooks
[        ]   [        ] Shutdown hooks complete
[        ]   [        ] exiting with code 0
[  +71 ms] FinalizeBuildStatus:
[        ]   Deleting file "x64\Debug\flutter_assemble\flutter_assemble.tlog\unsuccessfulbuild".
[        ]   Touching "x64\Debug\flutter_assemble\flutter_assemble.tlog\flutter_assemble.lastbuildstate".
[        ] Done Building Project "C:\Users\Gaetan\Developer\Projects\flutter_application_3\build\windows\flutter\flutter_assemble.vcxproj" (default targets).
[  +27 ms] Project "C:\Users\Gaetan\Developer\Projects\flutter_application_3\build\windows\runner\flutter_application_3.vcxproj" (4) is building
"C:\Users\Gaetan\Developer\Projects\flutter_application_3\build\windows\flutter\flutter_wrapper_app.vcxproj" (6) on node 1 (default targets).
[        ] InitializeBuildStatus:
[        ]   Creating "flutter_wrapper_app.dir\Debug\flutter_.5A207A0A.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
[   +1 ms] CustomBuild:
[        ]   All outputs are up-to-date.
[  +32 ms] ClCompile:
[        ]   All outputs are up-to-date.
[  +16 ms] Lib:
[        ]   All outputs are up-to-date.
[        ]   flutter_wrapper_app.vcxproj -> C:\Users\Gaetan\Developer\Projects\flutter_application_3\build\windows\flutter\Debug\flutter_wrapper_app.lib
[  +18 ms] FinalizeBuildStatus:
[        ]   Deleting file "flutter_wrapper_app.dir\Debug\flutter_.5A207A0A.tlog\unsuccessfulbuild".
[        ]   Touching "flutter_wrapper_app.dir\Debug\flutter_.5A207A0A.tlog\flutter_wrapper_app.lastbuildstate".
[        ] Done Building Project "C:\Users\Gaetan\Developer\Projects\flutter_application_3\build\windows\flutter\flutter_wrapper_app.vcxproj" (default targets).
[   +5 ms] InitializeBuildStatus:
[        ]   Touching "flutter_application_3.dir\Debug\flutter_.24C1CE9C.tlog\unsuccessfulbuild".
[   +1 ms] CustomBuild:
[        ]   All outputs are up-to-date.
[  +22 ms] ClCompile:
[        ]   C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\bin\HostX64\x64\CL.exe /c
/IC:\Users\Gaetan\Developer\Projects\flutter_application_3\windows /IC:\Users\Gaetan\Developer\Projects\flutter_application_3\windows\flutter\ephemeral
/IC:\Users\Gaetan\Developer\Projects\flutter_application_3\windows\flutter\ephemeral\cpp_client_wrapper\include /Zi /nologo /W4 /WX /diagnostics:column /Od /Ob0 /D WIN32 /D _WINDOWS/D _HAS_EXCEPTIONS=0 /D _DEBUG /D NOMINMAX /D UNICODE /D _UNICODE /D "CMAKE_INTDIR=\"Debug\"" /D _UNICODE /D UNICODE /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope
/Zc:inline /GR /std:c++17 /Fo"flutter_application_3.dir\Debug\\" /Fd"flutter_application_3.dir\Debug\vc142.pdb" /Gd /TP /wd4100 /errorReport:queue
C:\Users\Gaetan\Developer\Projects\flutter_application_3\windows\flutter\generated_plugin_registrant.cc
C:\Users\Gaetan\Developer\Projects\flutter_application_3\windows\runner\flutter_window.cpp
[  +74 ms]   generated_plugin_registrant.cc
[ +359 ms]   flutter_window.cpp
[ +598 ms]   Generating Code...
[  +67 ms] ResourceCompile:
[        ]   All outputs are up-to-date.
[  +22 ms] Link:
[  +13 ms]   C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\bin\HostX64\x64\link.exe /ERRORREPORT:QUEUE
/OUT:"C:\Users\Gaetan\Developer\Projects\flutter_application_3\build\windows\runner\Debug\flutter_application_3.exe" /INCREMENTAL /NOLOGO ..\flutter\Debug\flutter_wrapper_app.lib
C:\Users\Gaetan\Developer\Projects\flutter_application_3\windows\flutter\ephemeral\flutter_windows.dll.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib
oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed
/manifestinput:C:\Users\Gaetan\Developer\Projects\flutter_application_3\windows\runner\runner.exe.manifest /DEBUG
/PDB:"C:/Users/Gaetan/Developer/Projects/flutter_application_3/build/windows/runner/Debug/flutter_application_3.pdb" /SUBSYSTEM:WINDOWS /TLBID:1 /DYNAMICBASE /NXCOMPAT
/IMPLIB:"C:/Users/Gaetan/Developer/Projects/flutter_application_3/build/windows/runner/Debug/flutter_application_3.lib" /MACHINE:X64  /machine:x64
flutter_application_3.dir\Debug\Runner.res
[   +1 ms]   flutter_application_3.dir\Debug\flutter_window.obj
[        ]   flutter_application_3.dir\Debug\main.obj
[        ]   flutter_application_3.dir\Debug\run_loop.obj
[        ]   flutter_application_3.dir\Debug\utils.obj
[        ]   flutter_application_3.dir\Debug\win32_window.obj
[        ]   flutter_application_3.dir\Debug\generated_plugin_registrant.obj
[ +151 ms]   flutter_application_3.vcxproj -> C:\Users\Gaetan\Developer\Projects\flutter_application_3\build\windows\runner\Debug\flutter_application_3.exe
[   +5 ms] FinalizeBuildStatus:
[  +10 ms]   Deleting file "flutter_application_3.dir\Debug\flutter_.24C1CE9C.tlog\unsuccessfulbuild".
[        ]   Touching "flutter_application_3.dir\Debug\flutter_.24C1CE9C.tlog\flutter_application_3.lastbuildstate".
[        ] Done Building Project "C:\Users\Gaetan\Developer\Projects\flutter_application_3\build\windows\runner\flutter_application_3.vcxproj" (default targets).
[  +18 ms] Project "C:\Users\Gaetan\Developer\Projects\flutter_application_3\build\windows\ALL_BUILD.vcxproj" (3) is building
"C:\Users\Gaetan\Developer\Projects\flutter_application_3\build\windows\flutter\flutter_wrapper_plugin.vcxproj" (7) on node 1 (default targets).
[  +21 ms] InitializeBuildStatus:
[  +25 ms]   Creating "flutter_wrapper_plugin.dir\Debug\flutter_.48B2457A.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
[   +1 ms] CustomBuild:
[        ]   All outputs are up-to-date.
[        ] ClCompile:
[        ]   All outputs are up-to-date.
[        ] Lib:
[        ]   All outputs are up-to-date.
[  +14 ms]   flutter_wrapper_plugin.vcxproj -> C:\Users\Gaetan\Developer\Projects\flutter_application_3\build\windows\flutter\Debug\flutter_wrapper_plugin.lib
[  +13 ms] FinalizeBuildStatus:
[  +14 ms]   Deleting file "flutter_wrapper_plugin.dir\Debug\flutter_.48B2457A.tlog\unsuccessfulbuild".
[        ]   Touching "flutter_wrapper_plugin.dir\Debug\flutter_.48B2457A.tlog\flutter_wrapper_plugin.lastbuildstate".
[        ] Done Building Project "C:\Users\Gaetan\Developer\Projects\flutter_application_3\build\windows\flutter\flutter_wrapper_plugin.vcxproj" (default targets).
[        ] InitializeBuildStatus:
[        ]   Creating "x64\Debug\ALL_BUILD\ALL_BUILD.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
[        ] CustomBuild:
[        ]   All outputs are up-to-date.
[        ] FinalizeBuildStatus:
[        ]   Deleting file "x64\Debug\ALL_BUILD\ALL_BUILD.tlog\unsuccessfulbuild".
[        ]   Touching "x64\Debug\ALL_BUILD\ALL_BUILD.tlog\ALL_BUILD.lastbuildstate".
[        ] Done Building Project "C:\Users\Gaetan\Developer\Projects\flutter_application_3\build\windows\ALL_BUILD.vcxproj" (default targets).
[        ] InitializeBuildStatus:
[        ]   Creating "x64\Debug\INSTALL\INSTALL.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
[  +17 ms] PostBuildEvent:
[  +12 ms]   setlocal
[        ]   "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -DBUILD_TYPE=Debug -P
cmake_install.cmake
[  +14 ms]   if %errorlevel% neq 0 goto :cmEnd
[        ]   :cmEnd
[        ]   endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
[  +14 ms]   :cmErrorLevel
[        ]   exit /b %1
[        ]   :cmDone
[        ]   if %errorlevel% neq 0 goto :VCEnd
[        ]   :VCEnd
[  +22 ms]   -- Install configuration: "Debug"
[   +9 ms]   -- Up-to-date: C:/Users/Gaetan/Developer/Projects/flutter_application_3/build/windows/runner/Debug/data/icudtl.dat
[        ]   -- Up-to-date: C:/Users/Gaetan/Developer/Projects/flutter_application_3/build/windows/runner/Debug/flutter_windows.dll
[   +5 ms]   -- Installing: C:/Users/Gaetan/Developer/Projects/flutter_application_3/build/windows/runner/Debug/data/flutter_assets
[   +1 ms]   -- Installing: C:/Users/Gaetan/Developer/Projects/flutter_application_3/build/windows/runner/Debug/data/flutter_assets/AssetManifest.json
[  +25 ms]   -- Installing: C:/Users/Gaetan/Developer/Projects/flutter_application_3/build/windows/runner/Debug/data/flutter_assets/FontManifest.json
[  +13 ms]   -- Installing: C:/Users/Gaetan/Developer/Projects/flutter_application_3/build/windows/runner/Debug/data/flutter_assets/fonts
[        ]   -- Installing: C:/Users/Gaetan/Developer/Projects/flutter_application_3/build/windows/runner/Debug/data/flutter_assets/fonts/MaterialIcons-Regular.otf
[        ]   -- Installing: C:/Users/Gaetan/Developer/Projects/flutter_application_3/build/windows/runner/Debug/data/flutter_assets/kernel_blob.bin
[  +54 ms]   -- Installing: C:/Users/Gaetan/Developer/Projects/flutter_application_3/build/windows/runner/Debug/data/flutter_assets/NOTICES
[   +2 ms]   -- Installing: C:/Users/Gaetan/Developer/Projects/flutter_application_3/build/windows/runner/Debug/data/flutter_assets/packages
[  +13 ms]   -- Installing: C:/Users/Gaetan/Developer/Projects/flutter_application_3/build/windows/runner/Debug/data/flutter_assets/packages/cupertino_icons
[        ]   -- Installing: C:/Users/Gaetan/Developer/Projects/flutter_application_3/build/windows/runner/Debug/data/flutter_assets/packages/cupertino_icons/assets
[        ]   -- Installing:
C:/Users/Gaetan/Developer/Projects/flutter_application_3/build/windows/runner/Debug/data/flutter_assets/packages/cupertino_icons/assets/CupertinoIcons.ttf
[  +39 ms] FinalizeBuildStatus:
[  +12 ms]   Deleting file "x64\Debug\INSTALL\INSTALL.tlog\unsuccessfulbuild".
[  +13 ms]   Touching "x64\Debug\INSTALL\INSTALL.tlog\INSTALL.lastbuildstate".
[        ] Done Building Project "C:\Users\Gaetan\Developer\Projects\flutter_application_3\build\windows\INSTALL.vcxproj" (default targets).
[        ] Build succeeded.
[        ]     0 Warning(s)
[        ]     0 Error(s)
[        ] Time Elapsed 00:00:12.57
[   +1 ms] Building Windows application... (completed in 13.0s)
[ +276 ms] Observatory URL on device: http://127.0.0.1:65185/51MDfpXVrZk=/
[   +2 ms] Caching compiled dill
[  +34 ms] Connecting to service protocol: http://127.0.0.1:65185/51MDfpXVrZk=/
[  +85 ms] Launching a Dart Developer Service (DDS) instance at http://127.0.0.1:0, connecting to VM service at http://127.0.0.1:65185/51MDfpXVrZk=/.
[  +49 ms] DDS is listening at http://127.0.0.1:65190/dtkeDCCgPxU=/.
[  +40 ms] Successfully connected to service protocol: http://127.0.0.1:65185/51MDfpXVrZk=/
[  +15 ms] Activating Dart DevTools...
[+5653 ms] flutter: 0x31
[  +87 ms] flutter: 0x10700000031

Hi @gaetschwartz
Thanks for filing the issue, you're correct, the actual code is different compared to mac or web but it seems to change fast from 0x31 to 0x10700000031 when pressing 1 on the keyboard on windows.  (this might be a regression)

code sample
/// Flutter code sample for LogicalKeyboardKey
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter/scheduler.dart';
import 'package:flutter/services.dart';

void main() {
  runApp(MyApp());
}

/// This is the main application widget.
class MyApp extends StatelessWidget {
  static const String _title = 'Flutter Code Sample';

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: _title,
      home: Scaffold(
        appBar: AppBar(title: const Text(_title)),
        body: MyStatefulWidget(),
      ),
    );
  }
}

/// This is the stateful widget that the main application instantiates.
class MyStatefulWidget extends StatefulWidget {
  MyStatefulWidget({Key key}) : super(key: key);

  @override
  _MyStatefulWidgetState createState() => _MyStatefulWidgetState();
}

/// This is the private State class that goes with MyStatefulWidget.
class _MyStatefulWidgetState extends State<MyStatefulWidget> {
  // The node used to request the keyboard focus.
  final FocusNode _focusNode = FocusNode();
// The message to display.
  String _message;

// Focus nodes need to be disposed.
  @override
  void dispose() {
    _focusNode.dispose();
    super.dispose();
  }

// Handles the key events from the RawKeyboardListener and update the
// _message.
  void _handleKeyEvent(RawKeyEvent event) {
    setState(() {
      _message = (event.isControlPressed ? 'CTRL + ' : '') +
          "0x" +
          event.logicalKey.keyId.toRadixString(16) +
          '\n' +
          event.logicalKey.toString();
    });
    print("0x" + event.logicalKey.keyId.toRadixString(16));
  }

  @override
  Widget build(BuildContext context) {
    final TextTheme textTheme = Theme.of(context).textTheme;
    return Container(
      color: Colors.white,
      alignment: Alignment.center,
      child: DefaultTextStyle(
        style: textTheme.headline4,
        child: RawKeyboardListener(
          focusNode: _focusNode,
          onKey: _handleKeyEvent,
          child: AnimatedBuilder(
            animation: _focusNode,
            builder: (BuildContext context, Widget child) {
              if (!_focusNode.hasFocus) {
                return GestureDetector(
                  onTap: () {
                    FocusScope.of(context).requestFocus(_focusNode);
                  },
                  child: const Text('Tap to focus'),
                );
              }
              return Text(_message ?? 'Press a key');
            },
          ),
        ),
      ),
    );
  }
}

Windows Preview

flutter doctor -v
[âˆš] Flutter (Channel master, 1.26.0-18.0.pre.156, on Microsoft Windows [Version 10.0.19042.746], locale en-US)
    â€¢ Flutter version 1.26.0-18.0.pre.156 at C:\Users\Taha\Code\flutter_master
    â€¢ Framework revision 45508985b1 (6 hours ago), 2021-02-02 22:46:04 -0500
    â€¢ Engine revision 2c144c3eeb
    â€¢ Dart version 2.12.0 (build 2.12.0-282.0.dev)
[âˆš] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    â€¢ Android SDK at C:\Users\Taha\Code\SDK
    â€¢ Platform android-30, build-tools 30.0.3
    â€¢ ANDROID_HOME = C:\Users\Taha\Code\SDK
    â€¢ Java binary at: C:\Users\Taha\Code\android-studio\jre\bin\java
    â€¢ Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    â€¢ All Android licenses accepted.
[âˆš] Chrome - develop for the web
    â€¢ Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[âˆš] Visual Studio - develop for Windows (Visual Studio Community 2019 16.8.3)
    â€¢ Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    â€¢ Visual Studio Community 2019 version 16.8.30804.86
    â€¢ Windows 10 SDK version 10.0.18362.0
[âˆš] Android Studio (version 4.1.0)
    â€¢ Android Studio at C:\Users\Taha\Code\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 1.8.0_242-release-1644-b01)
[âˆš] VS Code (version 1.52.1)
    â€¢ VS Code at C:\Users\Taha\AppData\Local\Programs\Microsoft VS Code
    â€¢ Flutter extension version 3.19.0
[âˆš] Connected device (3 available)
    â€¢ Windows (desktop) â€¢ windows â€¢ windows-x64    â€¢ Microsoft Windows [Version 10.0.19042.746]
    â€¢ Chrome (web)      â€¢ chrome  â€¢ web-javascript â€¢ Google Chrome 88.0.4324.104
    â€¢ Edge (web)        â€¢ edge    â€¢ web-javascript â€¢ Microsoft Edge 88.0.705.53
â€¢ No issues found!

Mac Preview

flutter doctor -v
[✓] Flutter (Channel master, 1.26.0-18.0.pre.156, on macOS 11.1 20C69 darwin-x64, locale en-GB)
    • Flutter version 1.26.0-18.0.pre.156 at /Users/tahatesser/Code/flutter_master
    • Framework revision 45508985b1 (3 hours ago), 2021-02-02 22:46:04 -0500
    • Engine revision 2c144c3eeb
    • Dart version 2.12.0 (build 2.12.0-282.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Volumes/Extreme/SDK
    • Platform android-30, build-tools 30.0.3
    • ANDROID_HOME = /Volumes/Extreme/SDK
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Volumes/Extreme/Xcode.app/Contents/Developer
    • Xcode 12.4, Build version 12D4e
    • CocoaPods version 1.10.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      :hammer: https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      :hammer: https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

[✓] VS Code (version 1.52.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.19.0

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-x64     • macOS 11.1 20C69 darwin-x64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 88.0.4324.96

• No issues found!

Thank you

This will probably be solved with the ongoing https://github.com/flutter/engine/pull/23465 .

@TahaTesser Indeed, because the right keyId is output when the key is pressed but a different one is once the key is released.

As of latest (43c81ff) this problem is no longer reproducible.

source: gharchive/issue

authors: TahaTesser dkwingsmt gaetschwartz

repo: flutter/flutter

license_type: permissive

license_source: github-api


text:
ListView should have a constructor that builds a SliverPrototypeExtentList

ListView should have a constructor that builds a SliverPrototypeExtentList.

I can take care of that

@aminedakhlii Are you still doing this?

@Hixie As it seems @aminedakhlii is not working on this, I can take this if you like.
I have a question regarding the API.
Currently, ListView uses SliverList or SliverFixedExtentList depending on if itemExtent is null. However, if we add another parameter Widget? prototypeItem to be checked against and used in SliverPrototypeExtentList, we will have two excluding parameters, such that providing both will result in only one of them being really applied. There are some ways to handle this:

We could provide both parameters and document the priority over one or another;
We could deprecate itemExtent in favor of one sum-type parameter that would not allow for both to coexist. This change can be made non-breaking by simply setting this new parameter in the initializer if itemExtent is provided.
Maybe we are thinking of providing it only through a specific constructor, as the issue title seems to suggest? If this is the case, what we do with the default ListView constructor? Do we provide only itemExtent in it and set prototypeItem in the initializer list as null?

These three are the first ones that came to my mind, but maybe there's an even better solution? What do you think?

[...] what we do with the default ListView constructor? Do we provide only itemExtent in it and set prototypeItem in the initializer list as null?

Yeah that's a reasonable thing to do. We do that in many places.
Another option is to have both parameters on the same constructor but assert that (at least) one of them is null. We do that in various places also.

I think that ReordableListView (and ReorderableList maybe) should also have such constructor

@Hixie Is this closed by #79752?

upd: it was added to ReordableList in https://github.com/flutter/flutter/issues/81603, I think can be closed

Closing per my previous comment

authors: Hixie aminedakhlii mateusfccp nt4f04uNd


text:
Add listen property on ValueListenableBuilder

A listen property on the ValueListenableBuilder would be nice for side effects that aren't part of the building process.
For example if the state of the ValueNotifier is success and the page needs to change, or if the state is error and I need to display a toast. Those things are not part of the build process.

@cedvdb
Can you check this plugin and see if it answers your requirement ?

@darshankawar That's not really what I'm asking. I'm asking for a listen property on the widget that would be a function that returns void that would act just the same as the build method.  Basically like a BlocConsumer

Thanks for the details.

authors: cedvdb darshankawar