简体   繁体   中英

Issues after running flutter doctor

I'm new to flutter so I'm terribly sorry if this question is too basic.

I came up with a flutter project in iOS and am currently trying to continue coding it in windows 10 but when I ran flutter doctor, I received the result below:

Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel stable, 2.2.1, on Microsoft Windows [Version 10.0.19042.1052], locale en-US)

[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3) X Cannot execute C:\\Program Files\\Java\\jdk-16.0.1;\\bin\\java to determine the version

[√] Chrome - develop for the web

[!] Android Studio (not installed)

[√] IntelliJ IDEA Community Edition (version 2021.1)

[√] VS Code (version 1.57.1)

[√] Connected device (2 available)

! Doctor found issues in 2 categories.

I don't have an idea how to go with the first issue. With the second, I have an Android Studio installed from which I am able to open the app from an emulator.

Could anyone help guide on how to process the two issues, please?

Thank you very much!

再次安装Andriod studio并在安装时选择android toolchain选项,这样它就会被安装,然后在安装android studio后设置android SDK的路径。这将解决android studio未被检测到的部分,然后你就可以开始了

It seems to be a problem with the JDK in windows. Reinstall the JDK and set the Environment Variable path. If the problem persists again, try to use JDK 11.

for windows, change your JAVA_HOME path, in pc propierties(right click my pc), enviromental variables, to android studio installation path, in my case:C:\\Program Files\\Android\\Android Studio\\jre\\bin

open new cmd window to test flutter doctor

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM