Reputation: 73
I am trying to use fire-base when i am make a new project in flutter every things is fine but when i open the android folder in my project i get an error at this line of android>app>build.gradle any idea please
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
Upvotes: 3
Views: 5809
Reputation: 417
the following steps might help you.
open your android project in flutter and select in this window, it won't show any error. Then re-open your flutter project and select in this window, you will find everything is OK.Upvotes: 1
Reputation: 6962
Assuming you have a successful installation of:
flutter doctor
in your terminal$PATH
(Flutter doctor should tell you)I also found it difficult to open the Android
folder in Android Studio.
What worked for me however was:
I'm not sure if this step is necessary, but I always do it when I have conflicts opening project in either Android Studio or Intellij.
This is basically where it keeps its configuration.
Click on Open an existing Android Studio project
android
folder from your projectHope that helped
Upvotes: 1