📜  构建颤振 apk 时未发现 Gradle 包装器问题 - Dart 代码示例

📅  最后修改于: 2022-03-11 14:48:06.156000             🧑  作者: Mango

代码示例1
PS D:\Final_Code_GIT\Research & Development\AndroidApp\flutter_application> flutter build apk
Building with sound null safety

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

**Solution: path shouldn't have space between them.**