sync安卓项目的时候,flutter_embedding_debug-1.0.0-c9506cb8
e93e5e8879152ff5c948b175abb5b997.pom一直下载不了,按如下配置后,可以下了,下载快了不少。
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.
Required by:
project :app
Could not resolve io.flutter:flutter_embedding_debug:1.0.0-c9506cb8e93e5e8879152ff5c948b175abb5b997.
Could not get resource 'https://storage.googleapis.com/download.flutter.io/io/flutter/flutter_embedding_debug/1.0.0-c9506cb8e93e5e8879152ff5c948b175abb5b997/flutter_embedding_debug-1.0.0-c9506cb8
e93e5e8879152ff5c948b175abb5b997.pom'.
Could not GET 'https://storage.googleapis.com/download.flutter.io/io/flutter/flutter_embedding_debug/1.0.0-c9506cb8e93e5e8879152ff5c948b175abb5b997/flutter_embedding_debug-1.0.0-c9506cb8e93e5e
8879152ff5c948b175abb5b997.pom
解决方法:
修改flutter SDK中:flutter/packages/flutter_tools/gradle/resolve_dependencies.gradle
flutter/packages/flutter_tools/gradle/aar_init_script.gradle
flutter/packages/flutter_tools/gradle/flutter.gradle
以及项目下 build.gradle maven { url "[https://storage.googleapis.com/download.flutter.io](https://storage.googleapis.com/download.flutter.io) " }
中的:https://storage.googleapis.com/download.flutter.io
替换为:http://download.flutter.io