首页 > 解决方案 > '。' 运行 ./gradlew 时不被识别为内部或外部命令

问题描述

每当我运行 ./gradlew buildForProd 时,它都会给我这个错误。我正在使用窗户。

'.' is not recognized as an internal or external command,
operable program or batch file.

编辑:

感谢 Mofi 提供的资源。

运行 .\gradlew 后,这就是我得到的。

Starting a Gradle Daemon, 19 busy Daemons could not be reused, use --status for details
:buildForProd FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':buildForProd'.
> A problem occurred starting process 'command './gradlew''

* Try:
Run with --stacktrace option to get the stack trace. 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 5.0.
See https://docs.gradle.org/4.6/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 12s
1 actionable task: 1 executed

标签: gradlecmd

解决方案


推荐阅读