Skip to content

[tool_crash] ArgumentError: Invalid argument(s): Invalid type for "path": null #186652

@samashash3-debug

Description

@samashash3-debug

Command

flutter create --platforms web --empty .

Steps to Reproduce

  1. ...
  2. ...
  3. ...

Logs

ArgumentError: Invalid argument(s): Invalid type for "path": null

#0      FileSystem.getPath (package:file/src/interface/file_system.dart:160:7)
#1      LocalFileSystem.directory (package:file/src/backends/local/local_file_system.dart:23:41)
#2      ErrorHandlingFileSystem.directory (package:flutter_tools/src/base/error_handling_io.dart:145:24)
#3      TemplatePathProvider.imageDirectory (package:flutter_tools/src/template.dart:58:10)
<asynchronous suspension>
#4      Template.merged (package:flutter_tools/src/template.dart:183:16)
<asynchronous suspension>
#5      CreateBase.renderMerged (package:flutter_tools/src/commands/create_base.dart:436:31)
<asynchronous suspension>
#6      CreateBase.generateApp (package:flutter_tools/src/commands/create_base.dart:467:23)
<asynchronous suspension>
#7      CreateCommand.runCommand (package:flutter_tools/src/commands/create.dart:482:31)
<asynchronous suspension>
#8      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1590:27)
<asynchronous suspension>
#9      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:154:19)
<asynchronous suspension>
#10     CommandRunner.runCommand (package:args/command_runner.dart:212:13)
<asynchronous suspension>
#11     FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:496:9)
<asynchronous suspension>
#12     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:154:19)
<asynchronous suspension>
#13     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:431:5)
<asynchronous suspension>
[!] Flutter (Channel stable, 3.41.9, on Microsoft Windows [Version 10.0.22631.6199], locale en-US) [343ms]
    • Flutter version 3.41.9 on channel stable at C:\Users\sulem\Downloads\flutter_windows_3.41.9-stable\flutter
    ! The flutter binary is not on your path. Consider adding C:\Users\sulem\Downloads\flutter_windows_3.41.9-stable\flutter\bin to your path.
    ! The dart binary is not on your path. Consider adding C:\Users\sulem\Downloads\flutter_windows_3.41.9-stable\flutter\bin to your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 00b0c91f06 (3 weeks ago), 2026-04-29 10:03:19 -0700
    • Engine revision 42d3d75a56
    • Dart version 3.11.5
    • DevTools version 2.54.2
    • Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations, enable-native-assets, omit-legacy-version-file, enable-lldb-debugging, enable-uiscene-migration
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[✓] Windows Version (11 Home 64-bit, 23H2, 2009) [2.3s]

[!] Android toolchain - develop for Android devices (Android SDK version 36.1.0) [456ms]
    • Android SDK at C:\Users\sulem\AppData\Local\Android\sdk
    • Emulator version 36.5.10.0 (build_id 15081367) (CL:N/A)
    ✗ cmdline-tools component is missing.
      Try installing or updating Android Studio.
      Alternatively, download the tools from https://developer.android.com/studio#command-line-tools-only and make sure to set the ANDROID_HOME environment variable.
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/to/windows-android-setup for more details.

[✓] Chrome - develop for the web [16ms]
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[✗] Visual Studio - develop Windows apps [15ms]
    ✗ Visual Studio not installed; this is necessary to develop Windows apps.
      Download at https://visualstudio.microsoft.com/downloads/.
      Please install the "Desktop development with C++" workload, including all of its default components

[✓] Connected device (3 available) [522ms]
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.22631.6199]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 148.0.7778.168
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 148.0.3967.70

[✓] Network resources [591ms]
    • All expected network resources are available.

! Doctor found issues in 3 categories.

Flutter Application Metadata

Type: app
Version: 1.0.0+1
Material: true
Android X: false
Module: false
Plugin: false
Android package: null
iOS bundle identifier: null
Creation channel: stable
Creation framework version: 00b0c91

Plugins

url_launcher_ios-6.4.1
url_launcher_android-6.3.29
url_launcher_macos-3.2.5
url_launcher_linux-3.2.2
url_launcher_windows-3.1.5
url_launcher_web-2.4.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions