首先:我用谷歌搜索“flutter doctor”并搜索了你的 网站也是如此。我将在下面详细说明我的结果,但在此之前我在这里:
1) 我按照 https://flutter.io/setup-windows/ 的指示进行操作直到我无法继续。
2) 我的环境是: Windows 10、64 位、210 Gb 可用空间 Intel(R) Core(TM) i5-2320 CPU @ 3.00GHz; 8.00 GB 安装内存(RAM)
I have PowerShell 5.1,
I have setup Git for Windows with "Use Git from
the Windows Command Prompt" option
I am able to run git from the command prompt or power shell
3) 我尝试下载测试版的 .zip 但是当我运行 “flutter doctor”命令它刚刚挂起。
4) 现在是搜索结果: 我发现了 3 个相关问题:
a) “让 Flutter 医生工作”——我尝试克隆“alpha”版本 并检查“后台智能传输服务正在运行”(它 是)。
b) “运行 Flutter Doctor 没有任何结果”——我删除了 alpha 版本 并使用 git bash 克隆了测试版,结果如下:
rex@NEXIUM MINGW64 /c/flutter
$ git clone -b beta https://github.com/flutter/flutter.git
Cloning into 'flutter'...
remote: Counting objects: 122267, done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 122267 (delta 0), reused 0 (delta 0), pack-reused 122262
Receiving objects: 100% (122267/122267), 37.56 MiB | 2.39 MiB/s, done.
Resolving deltas: 100% (91730/91730), done.
Checking out files: 100% (2473/2473), done.
This also did not work (i.e. flutter doctor still hangs)
c) “Flutter doctor 没有在命令提示符下运行”——这个是最重要的 有希望的结果:
I deleted the cache folder under the ..\AppData\Roaming\Pub directory.
when I ran "flutter doctor" this time I got the following results:
C:\Users\rex>flutter doctor
Checking Dart SDK version...
Downloading Dart SDK from Flutter engine 09d05a38912a3c1a906e95099cac9a7e14fae85f...
Unzipping Dart SDK...
// here there was some text above the ========== in the console about bits...
// which went away, window appeared compressed and then the following message:
Updating flutter tool...
// HANGS HERE
我希望安装 flutter 工具并尝试使用它来开发 android 和/或 iOS 应用程序。我在 Visual Studio 2017 中使用 Xamarin 进行了一些开发,但对控件的支持有限,我 希望这个工具会更有效率。如果有人可以帮助我解决这个问题,我将不胜感激。谢谢, 霸王龙
以下新信息:
我尝试在具有管理员权限的命令窗口中运行 flutter doctor 命令,结果相同。然后它尝试使用一些 echo 命令编辑 flutter.bat 文件以尝试获取其他信息,这些信息告诉我批处理文件正在执行以下语句:
>CALL "%dart%" %FLUTTER_TOOL_ARGS% "%snapshot_path%" %*
我编辑了批处理文件以取消注释分配 FLUTTER_TOOL_ARGS 的行,这给了我额外的信息并且批处理文件退出如下:
==================命令窗口中的结果=====================
>C:\Windows\System32>flutter doctor
>in acquire_lock ... # ECHO to get debug information
>in subroutine ... # ECHO to get debug information
>in after_subroutine ...# ECHO to get debug information
>dart - C:\src\flutter\flutter\bin\cache\dart-sdk\bin\dart.exe # ECHO dart
>FLUTTER_TOOL_ARGS ""--checked " --observe=65432" # ECHO FLUTTER_TOOL_ARGS
#next line is ECHO of snapshot_path
>snapshot_path C:\src\flutter\flutter\bin\cache\flutter_tools.snapshot
============== the following was output from the batch file =========
Unhandled exception:
Could not load "file:///C:/Windows/System32/%20--observe=65432":
FileSystemException: Cannot open file, path =
'C:\Windows\System32\ -->observe=65432'
(OS Error: The system cannot find the file specified. , errno = >2) null
# another ECHO
after CALL ... # echo to get debug information
================== 命令窗口中的结果结束 =====================
=========== 另一个新编辑 =============
为了澄清上面的编辑,我完全删除了与 flutter 相关的所有内容,然后将其重新安装/解压缩到另一个目录“C:\src\flutter”,该目录不需要管理员权限即可编辑等,但我做到了不要像以前那样删除 ..\AppData\Roaming\Pub 目录下的缓存文件夹,所以我今天早上回去做。我还将在命令提示符下使用 -v 或 -verbose 选项来查看是否有任何其他帮助,并在完成后添加新信息。
============== 跟进编辑 ================
我删除了一些debug ECHO语句,修改了其他语句,确保路径中有7z.exe,删除了缓存目录,但结果基本相同如下:
C:\WINDOWS\system32>flutter doctor -verbose
Show dart, FLUTTER_TOOL_ARGS, and snapshot_path:
dart - C:\src\flutter\flutter\bin\cache\dart-sdk\bin\dart.exe
FLUTTER_TOOL_ARGS ""--checked " --observe=65432"
snapshot_path C:\src\flutter\flutter\bin\cache\flutter_tools.snapshot
execute call to dart ...
Unhandled exception:
Could not load "file:///C:/Windows/System32/%20--observe=65432":
FileSystemException: Cannot open file, path =
'C:\Windows\System32\ --observe=65432' (OS Error: The system cannot find
the file specified., errno = 2)
null
returned from call to dart
exit code 255
C:\Windows\System32>
============ Another Update ===========
我决定再次尝试 beta 的克隆,因为这是我之前所做的所有事情中最有希望的。完成后,我使用 power shell 并发出“flutter channel”命令只是为了看看它会做什么。令人惊讶的是,我得到了与之前运行“flutter doctor”类似的结果。首先在屏幕顶部有一个输出显示正在下载 dart,然后在完成后在原始命令下方的控制台上打印以下内容:
C:\Users\rex>flutter channel
Checking Dart SDK version...
Downloading Dart SDK from Flutter engine
1ed25ca7b7e3e3e8047df050bba4174074c9b336...
Unzipping Dart SDK...
Updating flutter tool...
然后控制台像以前一样挂起...
我最终中止了命令并在 flutter.bat 中设置了 echo on。该文件挂起,屏幕上显示以下命令(全部在同一行):
C:\src\flutter>CALL "C:\src\flutter\bin\cache\dart-sdk\bin\dart.exe"
"--checked --observe=65432"
"C:\src\flutter\bin\cache\flutter_tools.snapshot" doctor
此时我几乎不知所措。
最佳答案
尝试过以下方法吗?
使用管理员权限从命令提示符运行 flutter doctor 命令?
尝试安装不同类型的解压缩程序(如 7-zip)并确保它在 PATH 中?
顺便说一句,我正在看这个问题,它看起来与您所描述的相似:https://github.com/flutter/flutter/issues/11698
关于installation - flutter doctor 在 "Updating flutter tool..."后挂起,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50260094/
我正在尝试测试是否存在表单。我是Rails新手。我的new.html.erb_spec.rb文件的内容是:require'spec_helper'describe"messages/new.html.erb"doit"shouldrendertheform"dorender'/messages/new.html.erb'reponse.shouldhave_form_putting_to(@message)with_submit_buttonendendView本身,new.html.erb,有代码:当我运行rspec时,它失败了:1)messages/new.html.erbshou
我在从html页面生成PDF时遇到问题。我正在使用PDFkit。在安装它的过程中,我注意到我需要wkhtmltopdf。所以我也安装了它。我做了PDFkit的文档所说的一切......现在我在尝试加载PDF时遇到了这个错误。这里是错误:commandfailed:"/usr/local/bin/wkhtmltopdf""--margin-right""0.75in""--page-size""Letter""--margin-top""0.75in""--margin-bottom""0.75in""--encoding""UTF-8""--margin-left""0.75in""-
为了将Cucumber用于命令行脚本,我按照提供的说明安装了arubagem。它在我的Gemfile中,我可以验证是否安装了正确的版本并且我已经包含了require'aruba/cucumber'在'features/env.rb'中为了确保它能正常工作,我写了以下场景:@announceScenario:Testingcucumber/arubaGivenablankslateThentheoutputfrom"ls-la"shouldcontain"drw"假设事情应该失败。它确实失败了,但失败的原因是错误的:@announceScenario:Testingcucumber/ar
我已经像这样安装了一个新的Rails项目:$railsnewsite它执行并到达:bundleinstall但是当它似乎尝试安装依赖项时我得到了这个错误Gem::Ext::BuildError:ERROR:Failedtobuildgemnativeextension./System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/rubyextconf.rbcheckingforlibkern/OSAtomic.h...yescreatingMakefilemake"DESTDIR="cleanmake"DESTDIR="
我遵循MichaelHartl的“RubyonRails教程:学习Web开发”,并创建了检查用户名和电子邮件长度有效性的测试(名称最多50个字符,电子邮件最多255个字符)。test/helpers/application_helper_test.rb的内容是:require'test_helper'classApplicationHelperTest在运行bundleexecraketest时,所有测试都通过了,但我看到以下消息在最后被标记为错误:ERROR["test_full_title_helper",ApplicationHelperTest,1.820016791]test
我正在尝试从Postgresql表(table1)中获取数据,该表由另一个相关表(property)的字段(table2)过滤。在纯SQL中,我会这样编写查询:SELECT*FROMtable1JOINtable2USING(table2_id)WHEREtable2.propertyLIKE'query%'这工作正常:scope:my_scope,->(query){includes(:table2).where("table2.property":query)}但我真正需要的是使用LIKE运算符进行过滤,而不是严格相等。然而,这是行不通的:scope:my_scope,->(que
我正在尝试编写一个将文件上传到AWS并公开该文件的Ruby脚本。我做了以下事情:s3=Aws::S3::Resource.new(credentials:Aws::Credentials.new(KEY,SECRET),region:'us-west-2')obj=s3.bucket('stg-db').object('key')obj.upload_file(filename)这似乎工作正常,除了该文件不是公开可用的,而且我无法获得它的公共(public)URL。但是当我登录到S3时,我可以正常查看我的文件。为了使其公开可用,我将最后一行更改为obj.upload_file(file
我克隆了一个rails仓库,我现在正尝试捆绑安装背景:OSXElCapitanruby2.2.3p173(2015-08-18修订版51636)[x86_64-darwin15]rails-v在您的Gemfile中列出的或native可用的任何gem源中找不到gem'pg(>=0)ruby'。运行bundleinstall以安装缺少的gem。bundleinstallFetchinggemmetadatafromhttps://rubygems.org/............Fetchingversionmetadatafromhttps://rubygems.org/...Fe
当我尝试安装Ruby时遇到此错误。我试过查看this和this但无济于事➜~brewinstallrubyWarning:YouareusingOSX10.12.Wedonotprovidesupportforthispre-releaseversion.Youmayencounterbuildfailuresorotherbreakages.Pleasecreatepull-requestsinsteadoffilingissues.==>Installingdependenciesforruby:readline,libyaml,makedepend==>Installingrub
我在新的Debian6VirtualBoxVM上安装RVM时遇到问题。我已经安装了所有需要的包并使用下载了安装脚本(curl-shttps://rvm.beginrescueend.com/install/rvm)>rvm,但以单个用户身份运行时bashrvm我收到以下错误消息:ERROR:Unabletocheckoutbranch.安装在这里停止,并且(据我所知)没有安装RVM的任何文件。如果我以root身份运行脚本(对于多用户安装),我会收到另一条消息:Successfullycheckedoutbranch''安装程序继续并指示成功,但未添加.rvm目录,甚至在修改我的.bas