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

↘锁芯ラ 提交于 2020-06-26 06:28:14

问题


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

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


回答1:


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

it contains something like this

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

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




回答2:


If you installed flutter on C:/ drive. Path will be something like this

flutter.sdk=C\:\\flutter

Don't forget to add \ after the C.



来源:https://stackoverflow.com/questions/57175769/error-flutter-sdk-not-found-define-location-with-flutter-sdk-in-the-local-prop

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!