问题
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