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.然后就可以运行啦。
版权声明:本文标题:FAILURE: Build failed with an exception.Flutter 虚拟机运行时报错 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://www.elefans.com/xitong/1728784685a1173175.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论