admin管理员组

文章数量:1618715

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'.
   > Using insecure protocols with repositories, without explicit opt-in, is unsupported. Switch Maven repository 'maven(http://storage.flutter-io/download.flutter.io)' to redirect to a secure protocol (like HTTPS) or allow insecure protocols. See https://docs.gradle/7.4/dsl/org.gradle.api.artifacts.repositories.UrlArtifactRepository.html#org.gradle.api.artifacts.repositories.UrlArtifactRepository:allowInsecureProtocol for more details. 

* 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

BUILD FAILED in 50s
Exception: Gradle task assembleDebug failed with exit code 1

解决:

网上看了许多教程,可是都没有解决这个办法,前期我的关注点都在前面一句,后面问了大佬才知道,原来重点是后面一句,主要错误是在http和https协议,将系统变量FLUTTER_STORAGE_BASE_URL 变量值的http改成https.然后就可以运行啦。

本文标签: 机运报错Buildfailurefailed