flutter channel dev flutter upgrade flutter config --android-studio-dir="C:\Program Files\Android\Android Studio" flutter doctor -v
Note: Make sure to change commands based on your directory structure.
I solved the issue with the following ways.
Requirement: You have Git installed on your machine.
src
directly in a root path. This procedure is the same as what explained in the flutter official download page. So you now have d:\src
for example.d:\src
and execute git clone -b master https://github.com/flutter/flutter.git
. You need to select master
branch here because the stable
version still has your issue (as of the time of writing).flutter doctor -v
. The problem should vanish.flutter
folder such that Android Studio can create Flutter project files, etc.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.