Issue
When I run flutter doctor -v
in Flutter stable version 2.10.1, I get this check:
[!] HTTP Host Availability
✗ HTTP host https://maven.google.com/ is not reachable. Reason: An error
occurred while checking the HTTP host: Operation timed out
What should I do?
Solution
Here is the solution works https://blog.csdn.net/ouhuanquan/article/details/123134340
Open ${FLUTTER_HOME}\packages\flutter_tools\lib\src\http_host_validator.dart
Change
https://maven.google.com/
tohttps://dl.google.com/dl/android/maven2/
Close Terminal
Open ${FLUTTER_HOME}\bin and delete cache directory
Reopen Terminal and exec
flutter doctor
Answered By - yancaico
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.