android - Flutter开发(flutter-dev)›需要紧急帮助…由于gradle问题,我无法在android设备中运行flutter应用,并且无法构建apk

标签 android flutter gradle dart sdk

enter image description here

****当我运行这些下面的东西时,表明:****发生此问题的所有形式的孟加拉国

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-6bc433c6b6b5b98dcf4cc11aff31cdee90849f32.
     Required by:
         project :app
      > Could not resolve io.flutter:flutter_embedding_debug:1.0.0-6bc433c6b6b5b98dcf4cc11aff31cdee90849f32.
         > Could not get resource 
         > Could not get resource 'https://storage.googleapis.com/download.flutter.io/io/flutter/x86_64_debug/1.0.0-6bc433c6b6b5b98dcf4cc11aff31cdee90849f32/x86_64_debug-1.0.0-6bc433c6b6b5b98dcf4cc11aff31cdee90849f32.pom'.
            > Could not GET 'https://storage.googleapis.com/download.flutter.io/io/flutter/x86_64_debug/1.0.0-6bc433c6b6b5b98dcf4cc11aff31cdee90849f32/x86_64_debug-1.0.0-6bc433c6b6b5b98dcf4cc11aff31cdee90849f32.pom'.
               > Remote host closed connection during handshake

* Try:
Run with --stack trace 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 1m 41s
Exception: Gradle task assembly debug failed with exit code 1

最佳答案

它清楚地说

Could not GET ...

Remote host closed connection during handshake


也许,请检查尝试构建的应用程序是否可以使用您的Internet连接。

关于android - Flutter开发(flutter-dev)›需要紧急帮助…由于gradle问题,我无法在android设备中运行flutter应用,并且无法构建apk,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61979715/

相关文章:

android - 在android中缓存大量数据

android - 我可以使用 sharedPreferences 文件中的项目填充 AlertDialog 吗?

android - 如何在flutter中更改agora rtc视频聊天布局?

gradle - 如何修改自定义Gradle任务可用的类?

android - 在android中调用隐藏的API来关闭屏幕

java - 创建一个上面有文字的矩形

flutter - #Flutter Dart编译器意外退出

android - 使用哪个权限来共享首选项?安卓( flutter )

spring - Gatling不适用于Spring Boot 2.0.1.RELEASE

Gradle : Unable to tunnel through proxy