How to solve the problem of prompting Flutter requires Android SDK 28 error in flutter doctor
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!