报错代码:

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   重新编译就好了

相关文章:

  • 2021-11-28
  • 2022-12-23
  • 2021-08-29
  • 2021-08-29
  • 2022-12-23
  • 2021-05-27
  • 2022-12-23
  • 2021-12-12
猜你喜欢
  • 2021-11-04
  • 2022-12-23
  • 2021-12-23
  • 2022-01-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案