Flutter 无法解析配置';的所有项目:app:debugCompileClasspath';

Flutter 无法解析配置';的所有项目:app:debugCompileClasspath';,flutter,Flutter,在Flatter1.17更新之后,我尝试运行我的应用程序,但它显示了这个错误颤振医生命令工作正常。我不明白发生了什么事 Launching lib\main.dart on Redmi Note 7 Pro in debug mode... FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:compileDebugKotlin'. > Could not

在Flatter1.17更新之后,我尝试运行我的应用程序,但它显示了这个错误<代码>颤振医生命令工作正常。我不明白发生了什么事

Launching lib\main.dart on Redmi Note 7 Pro in debug mode...

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileDebugKotlin'.
> Could not resolve all artifacts for configuration ':app:debugCompileClasspath'.
   > Could not download arm64_v8a_debug.jar (io.flutter:arm64_v8a_debug:1.0.0-540786dd51f112885a89792d678296b95e6622e5)
      > Could not get resource 'https://storage.googleapis.com/download.flutter.io/io/flutter/arm64_v8a_debug/1.0.0-540786dd51f112885a89792d678296b95e6622e5/arm64_v8a_debug-1.0.0-540786dd51f112885a89792d678296b95e6622e5.jar'.
         > Could not GET 'https://storage.googleapis.com/download.flutter.io/io/flutter/arm64_v8a_debug/1.0.0-540786dd51f112885a89792d678296b95e6622e5/arm64_v8a_debug-1.0.0-540786dd51f112885a89792d678296b95e6622e5.jar'.
            > Remote host closed connection during handshake

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 12s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)


我有一个类似的问题,当我在build.gradle文件中更改以下设置时,问题得到了解决:

ext.kotlin_version = '1.3.61' //from 1.3.50
dependencies {
        classpath 'com.android.tools.build:gradle:3.5.3' //from 3.5.0
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    }

你有没有代理?或者防火墙?没有。它正在下载补丁sdk。我用了一个虚拟专用网来做这件事,你可以不使用任何虚拟专用网来尝试吗。不起作用