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

Viewed 14536
9 Answers

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"

Installing Android 10.0(Q) worked for me.

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

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.

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

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

I fixed the problem. settup android 10.

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

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

Related