flutter Could not resolve io.flutter:x86_64_debug-1.0.0

运行flutter 项目如果出现下面这种情况

解决办法:

定位到Android --> build.gradle  

添加到下图红色标记处

classpath'com.google.protobuf:protobuf-gradle-plugin:0.8.8'

maven { url"https://storage.googleapis.com/download.flutter.io" }

然后点击右上角 open for Editing Android studio

选择 new window

可以看到右下角正在下载

等待执行成功

如果出错反复打开flutter_app/android 项目直到成功

你可能感兴趣的:(flutter Could not resolve io.flutter:x86_64_debug-1.0.0)