3

I try to install Flutter following official doc but when I run flutter doctor I have the following issue (which is my title): Flutter doctor error

In Android studio I have the following SDK installed:

Android SDK 29

Android BuildTool 28.0.3

I checked these links but none helped me:

Someone have an idea ?

Skunka
  • 149
  • 2
  • 9

5 Answers5

6

I have tried to install all the required versions via SDK Manager but had little luck. The thing that helped me was installing SDK via command line with sdkmanager utility.

Running this line fixed all problems: sdkmanager "platform-tools" "platforms;android-29"

xb1itz
  • 855
  • 9
  • 15
1

Installing Android 10.0(Q) worked for me.

You can find it in SDK Manager -> Android SDK -> SDK platforms

Sam12
  • 1,662
  • 2
  • 11
  • 17
0

After few hours working to solve this, I understand what was wrong and how to solve it.

In the file explorer, I went into C:/Android/android-sdk/. In this folder, there is some folder but I looked at build-tools/ and platforms.

In build-tools and I have the folder 28.0.3 which corresponds at Android BuildTools 28.0.3 so this one is good.

Then, in platforms folder, I only have android-28 folder which means Android Studio didn't installed Android 29 correctly (I tried with android 26, 27 and 30 but none of these were installed correctly or in another folder). There is my main problem.

So I asked one of my friend to send me his android-29 archive to unzip it into my platforms folder and then no more errors and I can use Flutter without trouble.

Skunka
  • 149
  • 2
  • 9
0

I manage to fix the problem like this: Android studio - Android SDK, Edit Android SDK location and resolved reported issue: "An exiting Android SDK was detected..."

d_user
  • 1
0

I upgrade the SDK manager SDK tools. It solved my problem.