'Flutter requires Android SDK 29 and the Android BuildTools 28.0.3 while having both

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 ?



Solution 1:[1]

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"

Solution 2:[2]

Android Studio SDK Manager

SDK Components Setup

Go to Android Studio SDK Manager, then click on EDIT (as shown in pic above).

Next, tick the API 31 setup to update (as shown in pic above). That's all. Hope it helps^^

Solution 3:[3]

Installing Android 10.0(Q) worked for me.

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

Solution 4:[4]

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

Solution 5:[5]

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

Solution 6:[6]

I fixed the problem. settup android 10.

Solution 7:[7]

Thank you for sharing the concern. Let me help you with this. I was also getting the same error while setting up the flutter .

Just to share with you , first you have to check your android SDK location check both build tools and platform

Both needs to have 28.0.3 in build tools and 29 in platform .

If anyone miss then you will get the error. You can check both and if 29 is not there and 28.0.3 there (mostly) then you can simply visit the android studio

Click on SDK tools and install the Android 10 which is SDK 29 .

Once installed , then you will have both 28.0.3 already and SDK 29 after installing. After that run flutter doctor and there will be no error

Solution 8:[8]

just go to andriod sdk manager and update the andriod sdk to above 28 api level

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 xb1itz
Solution 2 mimoseng
Solution 3 Sam12
Solution 4 user16066721
Solution 5 d_user
Solution 6 AnhDuc1603
Solution 7 Deepak Verma
Solution 8 Tuqeer khan