[英]Flutter : when i try to run flutter app that i clone from github, but the build failed, could someone inform me how to solve it?
warning: [options] source value 7 is obsolete and will be removed in a future release
warning: [options] target value 7 is obsolete and will be removed in a future release
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
error: warnings found and -Werror specified
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':connectivity:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
That error message means, your java code has warning.该错误消息意味着,您的 java 代码有警告。 and since -Werror
flag, it becomes an error.并且由于-Werror
标志,它变成了一个错误。
The warning says, your java target version is too old.警告说,您的 java 目标版本太旧。
Thus, you may upgrade that version.因此,您可以升级该版本。 Or, remove -Werror
.或者,删除-Werror
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.