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

xzabzqsa  于 2024-01-04  发布在  Android
关注(0)|答案(2)|浏览(194)

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

  1. 1: Task failed with an exception.
  2. -----------
  3. * Where:
  4. Script '/Users/dhwanitzaveri/.pub-cache/hosted/pub.dev/irondash_engine_context-0.4.0/cargokit/gradle/plugin.gradle' line: 59
  5. * What went wrong:
  6. Execution failed for task ':irondash_engine_context:cargokitCargoBuildIrondash_engine_context_nativeDebug'.
  7. > 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
  8. * Try:
  9. > Run with --info or --debug option to get more log output.
  10. > Run with --scan to get full insights.
  11. ==============================================================================
  12. 2: Task failed with an exception.
  13. -----------
  14. * Where:
  15. Script '/Users/dhwanitzaveri/.pub-cache/hosted/pub.dev/super_native_extensions-0.7.3/cargokit/gradle/plugin.gradle' line: 59
  16. * What went wrong:
  17. Execution failed for task ':super_native_extensions:cargokitCargoBuildSuper_native_extensionsDebug'.
  18. > 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
  19. * Try:
  20. > Run with --info or --debug option to get more log output.
  21. > Run with --scan to get full insights.
  22. ==============================================================================
  23. * Get more help at https://help.gradle.org
  24. Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
  25. You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
  26. See https://docs.gradle.org/7.5/userguide/command_line_interface.html#sec:command_line_warnings
  27. BUILD FAILED in 41s
  28. 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文件。

相关问题