質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.46%
Flutter

Flutterは、iOSとAndroidのアプリを同じコードで開発するためのフレームワークです。オープンソースで開発言語はDart。双方のプラットフォームにおける高度な実行パフォーマンスと開発効率を提供することを目的としています。

Q&A

解決済

1回答

1786閲覧

flutter環境設定時のメッセージ Connected device (the doctor check crashed)

zip

総合スコア21

Flutter

Flutterは、iOSとAndroidのアプリを同じコードで開発するためのフレームワークです。オープンソースで開発言語はDart。双方のプラットフォームにおける高度な実行パフォーマンスと開発効率を提供することを目的としています。

0グッド

0クリップ

投稿2020/06/04 05:40

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

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

自己解決

社内PCで実施していたのですが、exeファイルの実行をセキュリティソフトにより妨害されていたことが原因だったようです。
セキュリティソフトの影響を受けない場所にインストールし直した結果、無事に動作しました

投稿2020/06/08 06:05

zip

総合スコア21

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.46%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問