Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 731
APP Avatar asked Jul 24 '19 05:07

APP


3 Answers

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.

like image 92
Sunny Avatar answered Oct 22 '22 16:10

Sunny


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.

like image 28
Shanto Barua Avatar answered Oct 22 '22 15:10

Shanto Barua


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.")

like image 40
regenin Avatar answered Oct 22 '22 16:10

regenin