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?
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.
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.
Android > app > build.gradle: it might work if you replace the code written there with this one
throw new FileNotFoundException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With