簡體   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.

該錯誤消息意味着,您的 java 代碼有警告。 並且由於-Werror標志,它變成了一個錯誤。

警告說,您的 java 目標版本太舊。

因此,您可以升級該版本。 或者,刪除-Werror

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM