flutter进行调试的时候,运行flutter run。

会出现 Resolving dependencies…很慢。

解决办法

打开Flutter SDK:flutter\packages\flutter_tools\gradle\flutter.gradle

修改buildscript为:

buildscript { repositories { maven{ url 'https://maven.aliyun.com/repository/google' } maven{ url 'https://maven.aliyun.com/repository/jcenter' } maven{url 'http://maven.aliyun.com/nexus/content/groups/public'} } dependencies { classpath 'com.android.tools.build:gradle:3.2.1' }}

即可解决!

速度基本正常。