flutter - 无法编译构建文件“C:\Users\smrut\Desktop\vsflutter\demoproject\android\build.gradle”
问题描述
我可以在浏览器中运行我的代码,但是当我在我的手机上运行它时,它会通过我一个错误。这段代码完全由颤振系统给出,我没有改变任何东西。当我在终端中运行此演示代码时,它给了我以下错误。帮我解决这个问题。
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\Users\smrut\Desktop\vsflutter\demoproject\android\build.gradle'
* What went wrong:
Could not compile build file 'C:\Users\smrut\Desktop\vsflutter\demoproject\android\build.gradle'.
> startup failed:
General error during semantic analysis: Unsupported class file major version 60
1 error
* 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 1s
解决方案
推荐阅读
- java - 我需要在 Java 中短时间存储未知数量的关联数据
- php - 在 Woocommerce 3 中检查订单是否包含任何退款
- css - 是否可以为css网格内的一行设置背景
- node.js - 如何设置可写高水位线?
- apache-spark - Spark Cassandra 连接器 - 输入获取大小
- python - 使用python将数据框覆盖到已经存在的excel文件
- sql - 使用 SQL 按日期过滤
- c# - 为什么 Winforms UI Thread 在无法使用 ReaderWriterLockSlim 获取写锁后继续执行看似无关的工作?
- c# - 时间:2019-06-01 标签:c#string operations add * for plain word
- alexa - Alexa 技能:委托获得 AMAZON.Date 时 EXCEEDED_MAX_REPROMPTS