Flutter学习之旅小知识

Flutter Resolving dependencies..

2019-02-26  本文已影响0人  北有花开

因为项目原因最近一直没有学习flutter了,今天打开以前的flutter项目时发现,flutter Resolving dependencies...很慢。
解决办法:
打开Flutter SDK:flutter\packages\flutter_tools\gradle\flutter.gradle
改为:

buildscript {
    repositories {
       // google()
       // jcenter()
        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'
    }
}

即可解决!

上一篇下一篇

猜你喜欢

热点阅读