flutter doctor -v

記錄一下flutter vscode的環(huán)境。。搞了好久啊。。。
先把a(bǔ)ndroid studio和vscode還有所有java ,jre ,jdk卸載干凈。
個(gè)人目錄這里的vscode和grable的臨時(shí)文件夾要?jiǎng)h除干凈。


image.png

然后重新裝as 和 vscode。jdk 21。
還有這幾個(gè)環(huán)境變量:


image.png
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> 
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容