记录一个bug,运行Flutter 项目https://dl.google.com/dl/android/maven2/io/flutter 提示无法访问
我的解决方式:
找到目录C:\Users\xxx.gradle;打开gradle.properties文件;
## For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html
#
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
# Default value: -Xmx1024m -XX:MaxPermSize=256m
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
#
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
#Mon Oct 10 16:59:54 CST 2022
# systemProp.http.proxyHost=127.0.0.1
# systemProp.https.proxyHost=127.0.0.1
# systemProp.https.proxyPort=9666
# systemProp.http.proxyPort=9666
把systemProp.http.proxyHost=127.0.0.1
这四行注释掉后重新运行项目就可以了;