Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem of prompting Flutter requires Android SDK 28 error in flutter doctor

2025-01-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article introduces the relevant knowledge of "how to solve the problem of Flutter requires Android SDK 28 error in flutter doctor". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

1. Some basic environment variables have been configured

For the previous steps, see the official website.

Install Android Studio first

Install and then run Android Studio

Install Android SDK 28 using SDK Manager

Configure ANDROID_HOME and PATH

Export ANDROID_HOME=/Users/ [current user] / Library/Android/sdkexport PATH=$PATH:$ {ANDROID_HOME} / toolsexport PATH=$PATH:$ {ANDROID_HOME} / platform-tools

After the above operation is completed, perform flutter doctor discovery to indicate that there is still a problem.

Flutter requires Android SDK 28 and the Android BuildTools 28.0.31-Android SDK version 28 II. Reason

The installed version does not correctly match the version specified by Flutter

III. Solutions

1. Install Android 9.0 Pie

Procedure and path:

Android Studio = > SDK Manager = > SDK Platforms tab = > Select Android 9.0 Pie

2. Install Android BuildTools version 28.0.3

Procedure and path:

Android Studio = > SDK Manager = > SDK Tools tab = > Select the lower right corner Show Package Details = > Select 28.0.3 in Android SDK Build-Tools

3. Click ok to install when the box is checked.

4. Restart Android studio after the installation is complete

5. If you go to the command line to execute flutter doctor at this time, there should be no such problem.

This is the end of the content of "how to solve the problem of Flutter requires Android SDK 28 error in flutter doctor". Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report