简体   繁体   English

Flutter SDK 在指定位置找不到,但 flutter 医生显示没有问题

[英]Flutter SDK is not found in the specified location, but flutter doctor shows no issues

I'm trying to set up my environment to work with flutter and dash with android studio.我正在尝试设置我的环境以使用 flutter 并使用 android 工作室破折号。

I click "New Flutter Project", and then I browse to where I've extracted the flutter 3.0.5 stable build.我单击“新建 Flutter 项目”,然后浏览到提取 flutter 3.0.5 稳定版本的位置。 But android studio informs me that "Flutter SDK is not found in the specified location".但是android studio通知我“在指定位置找不到Flutter SDK”。 I opened up flutter in the command line and ran "flutter doctor" which showed me a number of issues, that I have resolved.我在命令行中打开了 flutter 并运行“颤振医生”,这向我展示了一些我已经解决的问题。 Now running flutter doctor shows no problems, but the issue with android studio persists.现在运行 flutter 医生显示没有问题,但 android 工作室的问题仍然存在。 Any ideas how I can fix this?有什么想法可以解决这个问题吗?

I think the problem can be resolved, by setting the correct Flutter SDK path in preferences.我认为可以通过在首选项中设置正确的 Flutter SDK 路径来解决问题。 Android Studio's/IntelliJ's Flutter path is independent from flutter doctor . Android Studio 的/IntelliJ 的 Flutter 路径独立于flutter doctor 颤振路径

It seems I just needed to create a virtual device on android studios, and it then worked.看来我只需要在 android 工作室上创建一个虚拟设备,然后它就可以工作了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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