我尝试运行flutter应用程序,并且此错误始终显示。我使用命令flutter create project_name
创建了该应用。我将路径添加到android sdk,并在环境变量中添加了ANDROID_HOME。
错误:
* Error running Gradle:
ProcessException: Process "C:\project_f\android\gradlew.bat" exited abnormally:
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\project_f\android\build.gradle' line: 24
* What went wrong:
A problem occurred evaluating root project 'android'.
> A problem occurred configuring project ':app'.
> Conversion = 'M'
* 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
BUILD FAILED in 6s
Command: C:\project_f\android\gradlew.bat app:properties
Finished with error: Please review your Gradle project setup in the android/ folder.