flutter / flutter

Flutter makes it easy and fast to build beautiful apps for mobile and beyond
https://flutter.dev
BSD 3-Clause "New" or "Revised" License
165.59k stars 27.34k forks source link

DMLERR_EXECACKTIMEOUT during 'flutter doctor --androids-licenses' #55478

Open GrasshopperBears opened 4 years ago

GrasshopperBears commented 4 years ago

command

flutter doctor --android-licenses

exception

FileSystemException: FileSystemException: writeFrom failed, path = '' (OS Error: OS Error 16389, errno = 16389)

#0      _RandomAccessFile.writeFromSync (dart:io/file_impl.dart:881:7) 
#1      _StdConsumer.addStream.<anonymous closure> (dart:io/stdio.dart:310:15)
#2      _rootRunUnary (dart:async/zone.dart:1134:38)
#3      _CustomZone.runUnary (dart:async/zone.dart:1031:19)
#4      _CustomZone.runUnaryGuarded (dart:async/zone.dart:933:7)
#5      _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:338:11)
#6      _BufferingStreamSubscription._add (dart:async/stream_impl.dart:265:7)
#7      _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:766:19)
#8      _StreamController._add (dart:async/stream_controller.dart:642:7)
#9      _StreamController.add (dart:async/stream_controller.dart:588:5)
#10     _Socket._onData (dart:io-patch/socket_patch.dart:1851:41)
#11     _rootRunUnary (dart:async/zone.dart:1138:13)
#12     _CustomZone.runUnary (dart:async/zone.dart:1031:19)
#13     _CustomZone.runUnaryGuarded (dart:async/zone.dart:933:7)
#14     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:338:11)
#15     _BufferingStreamSubscription._add (dart:async/stream_impl.dart:265:7)
#16     _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:766:19)
#17     _StreamController._add (dart:async/stream_controller.dart:642:7)
#18     _StreamController.add (dart:async/stream_controller.dart:588:5)
#19     new _RawSocket.<anonymous closure> (dart:io-patch/socket_patch.dart:1399:33)
#20     _NativeSocket.issueReadEvent.issue (dart:io-patch/socket_patch.dart:919:14)
#21     _microtaskLoop (dart:async/schedule_microtask.dart:43:21)
#22     _startMicrotaskLoop (dart:async/schedule_microtask.dart:52:5)
#23     _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:118:13)
#24     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:175:5)

flutter doctor

[✓] Flutter (Channel stable, v1.12.13+hotfix.9, on Microsoft Windows [Version 10.0.18363.778], locale ko-KR)
    • Flutter version 1.12.13+hotfix.9 at C:\Users\Jinwoo\Jinwoo\Programming\flutter
    • Framework revision f139b11009 (3 weeks ago), 2020-03-30 13:57:30 -0700
    • Engine revision af51afceb8
    • Dart version 2.7.2

[!] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at C:\Users\Jinwoo\AppData\Local\Android\sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.3
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)
    ✗ Android license status unknown.
      Try re-installing or updating your Android SDK Manager.
      See https://developer.android.com/studio/#downloads or visit https://flutter.dev/setup/#android-setup for detailed
      instructions.

[✓] Android Studio (version 3.6)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 45.1.1
    • Dart plugin version 192.7761
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)

[!] VS Code, 64-bit edition (version 1.44.1)
    • VS Code at C:\Program Files\Microsoft VS Code
    ✗ Flutter extension not installed; install from
      https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (1 available)
    • SM J730K • 5200e81ebc9a64d9 • android-arm • Android 9 (API 28)

! Doctor found issues in 2 categories.
jonahwilliams commented 4 years ago

The error code (0x4005) translates to DMLERR_EXECACKTIMEOUT (https://docs.microsoft.com/en-us/windows/win32/api/ddeml/nf-ddeml-ddegetlasterror)

"A request for a synchronous execute transaction has timed out"

Unfortunately from the stack trace its difficult to tell where it is coming from