English 中文(简体)
警告:在您的道路上,`dart'在 C:flutter 中解决 C:dart-sdknindart.exe 问题, 这个问题不在您当前在 C:flutter 的飞毛腿SDK 校验中。
原标题:! Warning: `dart` on your path resolves to C:dart-sdkindart.exe, which is not inside your current Flutter SDK checkout at C:flutter
  • 时间:2023-07-20 10:03:17
  •  标签:
  • flutter
  • dart
[!] Flutter (Channel stable, 3.10.6, on Microsoft Windows [Version 10.0.22621.1992], locale en-us)
    ! Warning: `dart` on your path resolves to C:dart-sdkindart.exe, which is not inside your current Flutter SDK checkout at C:flutter. Consider adding C:flutterin to the front of your path.

问题回答

<强度 > 解决方案:

  1. 在您安放的闪烁查找位置, 并在 bin 上单击, 然后缓存, 然后是 dart- sdk 然后是 bin 。 您的位置应该是 < code>drive: flutterincachedart- sdkin 复制此位置。 如果您的位置与我的不同, 即 < code> C: flutter 然后变成 < code> c: flutterincachedart- sdkin

  2. 按 Windows 标识键+ s 或简单地在搜索标签类型“ env” 中按 Windows 标识键+ s

  3. 点击编辑系统环境变量

  4. 点击环境变量

  5. 双击用户变量内路径

  6. 万一你已经把达特添加到路径上 移除它。

  7. 单击新按钮或双击空位并粘贴到 drive: flutterincachedart-sdkin 然后单击 ok 3 次。

  8. 关闭任何现有的 cmd 并键入颤抖医生 -v 以获取详细信息

The cause of this error is your Dart bin was not in the Flutter directory. This may occur because you installed Dart alone before installing Flutter so your Dart environment path made no path relating to Flutter. Hope this helps!

上面写着, 把你的飞镖放进 C:flutterin(如果此文件夹不存在, 仅此建立) 中,

I found that I had two dart.sdk installations. One at C:Program Filesdart.sdk and the second already inside the C:srcflutterincache folder.

我删除了前一版, 它解决了警示问题 当跑动的医生 和应用程序工作。

BTW,在更新后,这个数据也猛增到3.16.0。

它基本上说 你的道路 不同于通常应该走的路

  1. Run cmd as Admin
  2. run "where dart"
  3. if your dart path is different from flutterincachedart-sdkin (if u have too many dart path)
  4. delete different path dart files
  5. Run cmd and type "flutter doctor"
  6. This code will fix the problem.

我跑跑跑飞快的医生 -v 我发现重复SDK 在不同的地方,我删除了它 问题解决了





相关问题
Flutter App cannot be installed on Android TV

I m building a Flutter app that should support Android TV and Mobile devices. Despite Google Play shows that it is supported, I cannot install app on my MiBox device. While trying to install it, both ...

Moving the icon button to the right causes rendering issues

I am trying to align the icon button to the right of the Text field, I tried the row which made the icon button not centered vertically and now I am trying out the Stack widget. Here is my code - ...

热门标签