Ram*_*him 13 dart visual-studio-code flutter
我有一个颤振项目,我可以使用 git 终端和颤振命令flutter run
毫无问题地运行:但是最近当我尝试使用 Visual Studio 代码打开同一个项目时,我一直面临这个问题,
一旦 vs 代码启动,它会尝试分析项目中的 dart 代码错误。该过程通常需要相对较短的时间(一分钟左右),但现在需要很长时间,我不知道为什么。
我试图flutter clean在我的项目上做,但它没有解决它。也试过了flutter pub get,还是没有解决问题。这很奇怪,因为这仅在使用 Visual Studio 代码打开该特定项目时才会发生。
这是flutter doctor -v命令的日志:
C:\Users\Rami>flutter doctor -v
[?] Flutter (Channel beta, v1.15.17, on Microsoft Windows [Version 10.0.18363.720], locale en-US)
• Flutter version 1.15.17 at D:\Flutter\sdk
• Framework revision 2294d75bfa (4 weeks ago), 2020-03-07 00:28:38 +0900
• Engine revision 5aff311948
• Dart version 2.8.0 (build 2.8.0-dev.12.0 9983424a3c)
[?] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at D:\Android\sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• ANDROID_SDK_ROOT = D:\Android\sdk
• 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)
• All Android licenses accepted.
[?] Chrome - develop for the web
• Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
[?] Android Studio (version 3.6)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 44.0.2
• Dart plugin version 192.7761
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)
[?] VS Code (version 1.43.2)
• VS Code at C:\Users\Rami\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.8.1
[?] Connected device (3 available)
• SM A520F • 192.168.8.80:5555 • android-arm64 • Android 8.0.0 (API 26)
• Chrome • chrome • web-javascript • Google Chrome 80.0.3987.162
• Web Server • web-server • web-javascript • Flutter Tools
• No issues found!
Run Code Online (Sandbox Code Playgroud)
感谢您的反馈,谢谢
| 归档时间: |
|
| 查看次数: |
4095 次 |
| 最近记录: |