Could not resolve io.flutter 解决方法

MrLee20天前 84

如题,如此恶心问题也有。用浏览器可以正常下载pom,但是Android Studio死活不行!然后百度一下,发现以下解决方案有效。

修改flutter路径\flutter\packages\flutter_tools\gradle\flutter.gradle

	repositories {
		google()
		jcenter()
		maven { url 'https://storage.googleapis.com/download.flutter.io'}
		maven { url 'http://download.flutter.io'}
		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' }
	}

重启AS即可!

本文链接:https://www.it72.com/12646.htm

推荐阅读
最新回复 (0)
    返回