Skip to content

flutter create crashes in windows desktop directory "OS Error: The system cannot find the file specified" #40700

@ayushkumarak

Description

@ayushkumarak

flutter_01.log
content of the log:

command

flutter create prac_app

exception

FileSystemException: FileSystemException: Creation failed, path = 'C:\Users\Ayush Kumar\Desktop\development\flutter\prac_app' (OS Error: The system cannot find the file specified.
, errno = 2)

#0      _Directory.createSync (dart:io/directory_impl.dart:138:7)
#1      _LocalDirectory&LocalFileSystemEntity&ForwardingDirectory.createSync (package:file/src/forwarding/forwarding_directory.dart:22:16)
#2      Template.render (package:flutter_tools/src/template.dart:71:17)
#3      CreateCommand._renderTemplate (package:flutter_tools/src/commands/create.dart:623:21)
#4      CreateCommand._generateApp (package:flutter_tools/src/commands/create.dart:546:23)
<asynchronous suspension>
#5      CreateCommand.runCommand (package:flutter_tools/src/commands/create.dart:397:37)
<asynchronous suspension>
#6      FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:487:18)
#7      _asyncThenWrapperHelper.<anonymous closure> (dart:async-patch/async_patch.dart:77:64)
#8      _rootRunUnary (dart:async/zone.dart:1132:38)
#9      _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#10     _FutureListener.handleValue (dart:async/future_impl.dart:126:18)
#11     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:639:45)
#12     Future._propagateToListeners (dart:async/future_impl.dart:668:32)
#13     Future._complete (dart:async/future_impl.dart:473:7)
#14     _SyncCompleter.complete (dart:async/future_impl.dart:51:12)
#15     _AsyncAwaitCompleter.complete.<anonymous closure> (dart:async-patch/async_patch.dart:33:20)
#16     _rootRun (dart:async/zone.dart:1120:38)
#17     _CustomZone.run (dart:async/zone.dart:1021:19)
#18     _CustomZone.runGuarded (dart:async/zone.dart:923:7)
#19     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:963:23)
#20     _rootRun (dart:async/zone.dart:1124:13)
#21     _CustomZone.run (dart:async/zone.dart:1021:19)
#22     _CustomZone.runGuarded (dart:async/zone.dart:923:7)
#23     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:963:23)
#24     _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#25     _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#26     _Timer._runTimers (dart:isolate-patch/timer_impl.dart:391:30)
#27     _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:416:5)
#28     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:172:12)

flutter doctor

�[32m[✓]�[39m Flutter (Channel beta, v1.8.3, on Microsoft Windows [Version 10.0.17763.737], locale en-IN)
    �[32m•�[39m Flutter version 1.8.3 at G:\SOFTWARES\flutter
    �[32m•�[39m Framework revision e4ebcdf6f4 (7 weeks ago), 2019-07-27 11:48:24 -0700
    �[32m•�[39m Engine revision 38ac5f30a7
    �[32m•�[39m Dart version 2.5.0 (build 2.5.0-dev.1.0 0ca1582afd)

�[33m[!]�[39m Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    �[32m•�[39m Android SDK at C:\Users\Ayush Kumar\AppData\Local\Android\sdk
    �[32m•�[39m Android NDK location not configured (optional; useful for native profiling support)
    �[32m•�[39m Platform android-28, build-tools 28.0.3
    �[32m•�[39m Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    �[32m•�[39m Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
    �[33m!�[39m Some Android licenses not accepted.  To resolve this, run: flutter doctor --android-licenses

�[32m[✓]�[39m Android Studio (version 3.5)
    �[32m•�[39m Android Studio at C:\Program Files\Android\Android Studio
    �[32m•�[39m Flutter plugin version 38.2.3
    �[32m•�[39m Dart plugin version 191.8423
    �[32m•�[39m Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)

�[33m[!]�[39m IntelliJ IDEA Community Edition (version 2018.1)
    �[32m•�[39m IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2018.1.5
    �[31m✗�[39m Flutter plugin not installed; this adds Flutter specific functionality.
    �[31m✗�[39m Dart plugin not installed; this adds Dart specific functionality.
    �[32m•�[39m For information about installing plugins, see
      https://flutter.dev/intellij-setup/#installing-the-plugins

�[32m[✓]�[39m Connected device (1 available)
    �[32m•�[39m Android SDK built for x86 • emulator-5554 • android-x86 • Android 9 (API 28) (emulator)

�[33m!�[39m Doctor found issues in 2 categories.

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: crashStack traces logged to the consoleplatform-windowsBuilding on or for Windows specificallytoolAffects the "flutter" command-line tool. See also t: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions