当我在 android 模拟器上运行 flutter 项目时,我得到了这个错误日志。
当我运行任何 flutter 项目时都会出现这个错误日志。
不知道发生了什么。有什么帮助吗?
这是错误日志(出了什么问题):
Execution failed for task ':app:compileDebugKotlin'.
> Could not resolve all artifacts for configuration ':app:debugCompileClasspath'.
> Could not download flutter_embedding_debug.jar (io.flutter:flutter_embedding_debug:1.0.0-40441def692f444660a11e20fac37af9050245ab)
> Could not get resource 'https://storage.flutter-io.cn/download.flutter.io/io/flutter/flutter_embedding_debug/1.0.0-40441def692f444660a11e20fac37af9050245ab/flutter_embedding_debug-1.0.0-40441def692f444660a11e20fac37af9050245ab.jar'.
> Tag mismatch!
> Could not download x86_debug.jar (io.flutter:x86_debug:1.0.0-40441def692f444660a11e20fac37af9050245ab)
> Could not get resource 'https://storage.flutter-io.cn/download.flutter.io/io/flutter/x86_debug/1.0.0-40441def692f444660a11e20fac37af9050245ab/x86_debug-1.0.0-40441def692f444660a11e20fac37af9050245ab.jar'.
> Tag mismatch!
> Could not download x86_64_debug.jar (io.flutter:x86_64_debug:1.0.0-40441def692f444660a11e20fac37af9050245ab)
> Could not get resource 'https://storage.flutter-io.cn/download.flutter.io/io/flutter/x86_64_debug/1.0.0-40441def692f444660a11e20fac37af9050245ab/x86_64_debug-1.0.0-40441def692f444660a11e20fac37af9050245ab.jar'.
> Tag mismatch!
这是我的项目级build.gradle文件
buildscript {
ext.kotlin_version = '1.3.50'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
allprojects {
repositories {
google()
jcenter()
}
}
rootProject.buildDir = '../build'
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
project.evaluationDependsOn(':app')
}
task clean(type: Delete) {
delete rootProject.buildDir
}