Richard
Richard

Reputation: 1

Flutter is unable to locate android sdk

I just tried installing flutter and since I already have android studio and the android sdk installed I just followed the flutter installation instructions but I keep getting the result below whenever I run flutter doctor. enter image description here I already tried reinstalling the sdk but it did not work. I'll be very thankful for any help with this.

Upvotes: 0

Views: 354

Answers (4)

rvgi
rvgi

Reputation: 26

Can you check if Android SDK Build-Tools, Android SDK Platform-Tools & Android SDK Tools (Obsolete) are installed?

If you still have the problem, do a fresh installation of Android Studio but remove all old Android folders beforehand.

Upvotes: 0

Sayed Ali AL-Kamel
Sayed Ali AL-Kamel

Reputation: 31

Download the latest build tools in Android SDK Manager -> SDK Tools enter image description here

And the latest SDK Platform (Android API 30) enter image description here

Upvotes: 0

Sayed Ali AL-Kamel
Sayed Ali AL-Kamel

Reputation: 31

You need to set an Environment variable to you Android SDk path Search in windows for env -> Environment variable -> new

Environment variable

Upvotes: 0

mainak
mainak

Reputation: 2311

Use this..

flutter config --android-sdk <path-to-your-android-sdk-path>

Upvotes: 1

Related Questions