美文网首页
Flutter project :app > project :

Flutter project :app > project :

作者: 二八分发 | 来源:发表于2021-08-23 15:01 被阅读0次

Flutter报错:Required by: project :app > project :XXXX

Flutter报错:Could not resolve com.android.tools.build:gradle:3.5.0

修改步骤(笔者使用的mac):

1.修改镜像(app/build.gradle)

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' }

mavenLocal()

mavenCentral()

步骤一

2.同步修改flutter.gradle文件(文件路径在flutter安装路径/packages/flutter_tools/gradle

/flutter.gradle)不清楚安装路径可以在设置中查看到;

步骤二

3.删除gradle.properties文件(文件路径在用户/.gradle/)

步骤三

以上主要参考:

https://www.jianshu.com/p/0b4f2ffeb1f1

https://www.jianshu.com/p/6cd9cdab70b1

感谢!

相关文章

网友评论

      本文标题:Flutter project :app > project :

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