美文网首页Flutter学习之旅小知识
Flutter Resolving dependencies..

Flutter Resolving dependencies..

作者: 北有花开 | 来源:发表于2019-02-26 17:59 被阅读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'
    }
}

即可解决!

相关文章

网友评论

    本文标题:Flutter Resolving dependencies..

    本文链接:https://www.haomeiwen.com/subject/czlzyqtx.html