flutter cmdline-tools component is missing possible issue.

flutter version Flutter 3.3.10
andorid studio version 2021.3.1 Patch 1

1. The android SDK command-line Tools are not installed

  1. open android studio

  1. Find the tools on the toolbar, find the SDK manager below, check the content selected in the red box in the figure below, and install it.

2. Modified the android SDK directory, resulting in flutter not being able to find it.

If you have modified the default installation directory of sdk, as shown below

Then you need to modify the flutter configuration to specify the android-sdk directory.

Enter in CMD

flutter config --android-sdk "你自定义的sdk路径"

Then run flutter doctor to check, and the problem is eliminated.

Guess you like

Origin blog.csdn.net/qq_31277409/article/details/128664418