错误:找不到Flutter SDK.在local.properties文件中使用flutter.sdk定义位置 [英] ERROR: Flutter SDK not found. Define location with flutter.sdk in the local.properties file

查看:928
本文介绍了错误:找不到Flutter SDK.在local.properties文件中使用flutter.sdk定义位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

ERROR: Flutter SDK not found. Define location with flutter.sdk in the local.properties file.

我已经导入了Flutter示例应用程序mahtab-ali-fitness_app_ui,这会给我带来错误,有人知道吗?

I have imported Flutter sample application mahtab-ali-fitness_app_ui which gives me error, anyone knows about it?

推荐答案

您需要进入 android 文件夹.然后单击 local.properties 文件.

You need to inside the android folder. And then click on the local.properties file.

它包含这样的内容

sdk.dir=/Users/sunnysaini/Library/Android/sdk
flutter.sdk=/Users/sunnysaini/development/flutter
flutter.buildMode=debug
flutter.versionName=1.0.0
flutter.versionCode=1

问题出在 flutter.sdk 路径上.您需要用 flutter sdk 路径替换此路径.

and the issue is with flutter.sdk path. You need to replace this path with you flutter sdk path.

这篇关于错误:找不到Flutter SDK.在local.properties文件中使用flutter.sdk定义位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆