-
Notifications
You must be signed in to change notification settings - Fork 28.9k
Description
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!