码迷,mamicode.com
首页 > 其他好文 > 详细

Flutter编译时下载依赖报错的解决方案

时间:2020-05-15 18:01:43      阅读:801      评论:0      收藏:0      [点我收藏+]

标签:pac   eterm   adl   LEDE   determine   方案   min   tor   could not   

报错代码:

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ‘:app:compileDebugJavaWithJavac‘.
> Could not resolve all task dependencies for configuration ‘:app:debugCompileClasspath‘.
   > Could not resolve io.flutter:flutter_embedding_debug:1.0.0-c9506cb8e93e5e8879152ff5c948b175abb5b997.
。。。。。。。

 

解决办法:

修改:flutter/packages/flutter_tools/gradle/resolve_dependencies.gradle

flutter/packages/flutter_tools/gradle/aar_init_script.gradle

flutter/packages/flutter_tools/gradle/flutter.gradle

 

中的:https://storage.googleapis.com/download.flutter.io   替换为:http://download.flutter.io   重新编译就好了

Flutter编译时下载依赖报错的解决方案

标签:pac   eterm   adl   LEDE   determine   方案   min   tor   could not   

原文地址:https://www.cnblogs.com/zhouziyan/p/12896029.html

(0)
(1)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!