Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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:

  • Flutter requires Android SDK 28 and the Android BuildTools 28.0.3
  • I cannot run my flutter app. It says Flutter requires Android SDK 28, and I have sdk 28

Someone have an idea ?

like image 968
Skunka Avatar asked Dec 09 '20 17:12

Skunka


People also ask

Is Android SDK required for Flutter?

Before you can use Flutter, you must agree to the licenses of the Android SDK platform. This step should be done after you have installed the tools listed above. Make sure that you have a version of Java 8 installed and that your JAVA_HOME environment variable is set to the JDK's folder.

Is Flutter SDK same as Android SDK?

Flutter is a mobile app SDK to help developers and designers build modern mobile apps for iOS and Android. Android SDK belongs to "Frameworks (Full Stack)" category of the tech stack, while Flutter can be primarily classified under "Cross-Platform Mobile Development".

How do I fix Android SDK file not found ADB?

If the adb is not present, installing the platform-tools resolves the problem. For this, open Android Studio, click on SDK Manager in the toolbar or click Tools > SDK Manager, click on SDK Tools, then check-mark '✓' Android-SDK Platform-Tools (as shown below).

How do I upgrade my SDK?

Open the Preferences window by clicking File > Settings (on Mac, Android Studio > Preferences). In the left panel, click Appearance & Behavior > System Settings > Updates. Be sure that Automatically check for updates is checked, then select a channel from the drop-down list (see figure 1). Click Apply or OK.


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

like image 62
xb1itz Avatar answered Oct 17 '22 21:10

xb1itz


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^^

like image 7
mimoseng Avatar answered Oct 17 '22 22:10

mimoseng


Installing Android 10.0(Q) worked for me.

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

like image 3
Sam12 Avatar answered Oct 17 '22 20:10

Sam12