此版本中使用了不推荐的Gradle功能- Flutter android app build fail

xzabzqsa  于 5个月前  发布在  Android
关注(0)|答案(2)|浏览(87)

Flutter应用程序在iOS上构建良好,但无法构建Android应用程序:

1: Task failed with an exception.
-----------
* Where:
Script '/Users/dhwanitzaveri/.pub-cache/hosted/pub.dev/irondash_engine_context-0.4.0/cargokit/gradle/plugin.gradle' line: 59

* What went wrong:
Execution failed for task ':irondash_engine_context:cargokitCargoBuildIrondash_engine_context_nativeDebug'.
> Process 'command '/Users/dhwanitzaveri/.pub-cache/hosted/pub.dev/irondash_engine_context-0.4.0/cargokit/gradle/../run_build_tool.sh'' finished with non-zero exit value 127

* Try:
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================

2: Task failed with an exception.
-----------
* Where:
Script '/Users/dhwanitzaveri/.pub-cache/hosted/pub.dev/super_native_extensions-0.7.3/cargokit/gradle/plugin.gradle' line: 59

* What went wrong:
Execution failed for task ':super_native_extensions:cargokitCargoBuildSuper_native_extensionsDebug'.
> Process 'command '/Users/dhwanitzaveri/.pub-cache/hosted/pub.dev/super_native_extensions-0.7.3/cargokit/gradle/../run_build_tool.sh'' finished with non-zero exit value 127

* Try:
> 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

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.5/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 41s
351 actionable tasks: 346 executed, 5 up-to-date

字符串
不知道是什么问题-我已经尝试了flutter clean,删除android文件夹和flutter create . --platforms=android,升级和降级gradle,但都没有工作。
所提到的软件包是标准的Flutter软件包,所以我甚至不能改变他们?

z18hc3ub

z18hc3ub1#

这听起来很疯狂-但我的问题得到了解决,一旦我添加Flutter到我的路径.

jdzmm42g

jdzmm42g2#

我也遇到了同样的问题,我的问题是丢失了“keystore”jks文件。

相关问题