2

i just installed flutter ,and i created a project ,but when I open android studio and I want to run it on my device I got an error like this enter image description here

somoene can help me please i spent hours and hours but still got this probleme enter image description here

and when i run flutter doctor command i got this enter image description here

16
  • Please check this post. It might help You: stackoverflow.com/questions/60862570/… Commented Jun 29, 2021 at 14:46
  • i added the variables but stil got this problem Commented Jun 29, 2021 at 14:48
  • 2
    You may set path to Sdk in Flutter using this command: flutter config --android-sdk <path-to-your-android-sdk-path> Commented Jun 29, 2021 at 15:09
  • i tried it they told me Setting "android-sdk" value to "C:\Program". You may need to restart any open editors for them to read new settings. C:\Windows\System32> Commented Jun 29, 2021 at 15:13
  • Yes, It will say You may need to .....new settings. Restart Android Studio. Check if it is working or not. If there is any issue, comment below. Commented Jun 29, 2021 at 15:23

1 Answer 1

2

I resolved this on MacOS by downloading both the Flutter SDK and the Dart SDK and then setting the Flutter SDK and Dark SDK paths in Android Studio Preferences. See screenshots below:

Flutter SDK

Dart SDK

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.