Windows10で、flutterの開発環境準備を行っています。
flutter-windows_1.17.2
FlutterConsole上でflutter doctorと打ち込んで出てくるメッセージに従い準備を進めていたのですが、下記のメッセージを解決できずに困っています。
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_HOME environment variable: C:(前略)\AppData\Local\Android\Sdk\platform-tools\adb.exe
「C:(前略)\AppData\Local\Android\Sdk\」を環境変数ANDROID_HOMEに設定するなどしてみたのですが、内容は変わりませんでした。
flutter doctor -v実行時の表示メッセージは下記のとおりです。
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_HOME environment variable: C:\Users\70486060\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:62:7) • <asynchronous suspension> • #2 PollingDeviceDiscovery._populateDevices (package:flutter_tools/src/device.dart:321:52) • #3 PollingDeviceDiscovery.devices (package:flutter_tools/src/device.dart:311:12) • #4 DeviceManager.getAllConnectedDevices (package:flutter_tools/src/device.dart:152:20) • #5 DeviceValidator.validate (package:flutter_tools/src/doctor.dart:926:54) • #6 asyncGuard.<anonymous closure> (package:flutter_tools/src/base/async_guard.dart:111:32) • #7 _rootRun (dart:async/zone.dart:1184:13) • #8 _CustomZone.run (dart:async/zone.dart:1077:19) • #9 _runZoned (dart:async/zone.dart:1619:10) • #10 runZonedGuarded (dart:async/zone.dart:1608:12) • #11 runZoned (dart:async/zone.dart:1536:12) • #12 asyncGuard (package:flutter_tools/src/base/async_guard.dart:109:3) • #13 Doctor.startValidatorTasks (package:flutter_tools/src/doctor.dart:172:9) • #14 Doctor.diagnose (package:flutter_tools/src/doctor.dart:271:47) • #15 DoctorCommand.runCommand (package:flutter_tools/src/commands/doctor.dart:60:39) • #16 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:723:18) • #17 _rootRunUnary (dart:async/zone.dart:1192:38) • #18 _CustomZone.runUnary (dart:async/zone.dart:1085:19) • #19 _FutureListener.handleValue (dart:async/future_impl.dart:141:18) • #20 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:682:45) • #21 Future._propagateToListeners (dart:async/future_impl.dart:711:32) • #22 Future._completeWithValue (dart:async/future_impl.dart:526:5) • #23 Future._asyncComplete.<anonymous closure> (dart:async/future_impl.dart:556:7) • #24 _rootRun (dart:async/zone.dart:1184:13) • #25 _CustomZone.run (dart:async/zone.dart:1077:19) • #26 _CustomZone.runGuarded (dart:async/zone.dart:979:7) • #27 _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1019:23) • #28 _microtaskLoop (dart:async/schedule_microtask.dart:43:21) • #29 _startMicrotaskLoop (dart:async/schedule_microtask.dart:52:5) • #30 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:118:13) • #31 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolat
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。