Android 原生项目混合开发flutter ,在运行新项目的时候报错。
> Could not resolve io.flutter:flutter_embedding_debug:1.0.0-2a3401c9bbb5a9a9aec74d4f735d18a9dd3ebf2d.
解决方案
添加:
maven { url 'https://maven.google.com' }
maven {url "https://storage.flutter-io.cn/download.flutter.io"}
如下:
repositories { maven { url 'https://maven.google.com' } google() mavenCentral() maven { url "https://storage.flutter-io.cn/download.flutter.io" } } allprojects { repositories { maven { url 'https://maven.google.com' } google() mavenCentral() maven { url "https://storage.flutter-io.cn/download.flutter.io" } } }
按照上面的方式,完美的运行了Android混合flutter的项目。