記錄一下flutter vscode的環(huán)境褂微。郁季。搞了好久啊。浴骂。乓土。
先把android studio和vscode還有所有java ,jre ,jdk卸載干凈。
個人目錄這里的vscode和grable的臨時文件夾要刪除干凈溯警。
然后重新裝as 和 vscode趣苏。jdk 21。
還有這幾個環(huán)境變量:
PS D:\dev\project\temp\videoplayer\android> flutter doctor -v
Flutter assets will be downloaded from https://storage.flutter-io.cn. Make sure you trust this source!
[√] Flutter (Channel stable, 3.16.0, on Microsoft Windows [版本 10.0.22621.2715], locale zh-CN)
? Flutter version 3.16.0 on channel stable at D:\dev\sdk\flutter
? Upstream repository https://github.com/flutter/flutter.git
? Framework revision db7ef5bf9f (5 days ago), 2023-11-15 11:25:44 -0800
? Engine revision 74d16627b9
? Dart version 3.2.0
? DevTools version 2.28.2
? Pub download mirror https://pub.flutter-io.cn
? Flutter download mirror https://storage.flutter-io.cn
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
? Android SDK at D:\Android\android-sdk
? Platform android-33, build-tools 33.0.1
? ANDROID_SDK_ROOT = D:\Android\android-sdk
? Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
? Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-10027231)
? All Android licenses accepted.
[√] Chrome - develop for the web
? Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.4.4)
? Visual Studio at d:\Program Files\Microsoft Visual Studio\2022\Community
? Visual Studio Community 2022 version 17.4.33213.308
? Windows 10 SDK version 10.0.22000.0
[√] Android Studio (version 2022.3)
? Android Studio at C:\Program Files\Android\Android Studio
? Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
? Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
? Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-10027231)
[√] VS Code, 64-bit edition (version 1.84.2)
? VS Code at C:\Program Files\Microsoft VS Code
? Flutter extension version 3.76.0
[√] Connected device (4 available)
? sdk gphone x86 64 (mobile) ? emulator-5554 ? android-x64 ? Android 13 (API 33) (emulator)
? Windows (desktop) ? windows ? windows-x64 ? Microsoft Windows [版本 10.0.22621.2715]
? Chrome (web) ? chrome ? web-javascript ? Google Chrome 119.0.6045.160
? Edge (web) ? edge ? web-javascript ? Microsoft Edge 119.0.2151.72
[√] Network resources
? All expected network resources are available.
? No issues found!
PS D:\dev\project\temp\videoplayer\android>