简体   繁体   English

Flutter:当我尝试运行从 github 克隆的 flutter 应用程序时,但构建失败,有人可以告诉我如何解决吗?

[英]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.

相关问题 Flutter:我正在使用 flutter 应用程序,我从 git 集线器克隆它,当我尝试运行它时构建失败 - Flutter: I'm working in a flutter application which i clone it from git hub, the build is failed when i trying to run it Flutter 运行时 Flutter App Build 失败 - Flutter App Build Failed while flutter run 我已经尝试安装 Flutter 几个小时但失败了。 请告诉我如何解决这个问题 - I have tried to install Flutter for hours but failed. PLease tell me how to solve this 当我尝试在 java 中实现 appium-flutter-driver 时,appium-flutter-finder 依赖项不起作用,有人知道如何解决吗? - When I try to implement appium-flutter-driver in java, the appium-flutter-finder dependency does not work someone knows how to fix it? 当我尝试运行新的示例应用程序时,无法在flutter中打开xmltree错误 - Unable to open xmltree error in flutter when i try to run fresh sample app 当我尝试从 GitHub 存储库构建和运行代码时出现 Gradle 同步问题 - Gradle Sync Issue when I try to build and run code from a GitHub repository 运行“flutter build apk --release”时出错 - Get error when I run 'flutter build apk --release' 当我尝试运行我的应用程序时无法编译值文件 - Failed to compile values file' when i try to run my app 当我在 flutter 中构建项目时,它询问我是否更新到 java 11 以构建 android 项目 - When I build a project in flutter it is asking me about update to java 11 for building android project 我尝试使用多态性,但我的代码不能像我预期的那样工作,有人可以帮我解决这个问题吗? - I try to use polymorphism but my code does not work as i excpected, could anyone help me solve this problem?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM