Gradle 构建 flutter apk 时找不到包装器问题

Gradle wrapper not found issue when building a flutter apk

当我尝试在模拟器上构建 apk 或 运行 时出现以下错误。 我尝试了 vs Code 和 Android Studio,但出现了同样的错误。

但是当我 运行 在浏览器上或作为 windows 应用程序运行该应用程序时,它运行良好。

错误:-

PS D:\Final_Code_GIT\Research & Development\AndroidApp\flutter_application> flutter build apk
Building with sound null safety

'Development\AndroidApp\flutter_application\android\' is not recognized as an internal or external 
command,operable program or batch file.

Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain

Caused by: java.lang.ClassNotFoundException: org.gradle.wrapper.GradleWrapperMain

Running Gradle task 'assembleRelease'...                           363ms

Gradle task assembleRelease failed with exit code 1

提前致谢,注意安全。

“Research & Development”删除 space 并将此文件夹重命名为“Research&Development”或“ResearchAndDevelopment”之类的名称,然后尝试构建应用 – Aakash kondhalkar