Zen*_*nji 6 android gradle dart flutter
我的 flutter 项目遇到问题。每当我运行 flutter build apk 命令时。我收到以下错误消息。我尝试了 flutter clean 但没有解决问题。这是我的错误消息。
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'android'.
> Could not determine the dependencies of null.
> Could not resolve all dependencies for configuration ':classpath'.
> Could not create service of type OutputFilesRepository using ExecutionGradleServices.createOutputFilesRepository().
> Cannot lock Build Output Cleanup Cache (C:\Users\JUSTINE NALWOGA\Desktop\EDUSELF FINAL\eduself\android\.gradle\buildOutputCleanup) as it has already been locked by this process.
* 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 5m 22s
Running Gradle task 'assembleRelease'... 337.9s
Gradle task assembleRelease failed with exit code 1
Run Code Online (Sandbox Code Playgroud)
rrt*_*trr 14
尝试在终端中运行此命令,
find ~/.gradle -type f -name "*.lock" -delete
Run Code Online (Sandbox Code Playgroud)
或者
转到/.gradle文件夹并手动删除所有以.lock.
然后运行flutter clean,
flutter pub get最后运行
flutter build apk。
| 归档时间: |
|
| 查看次数: |
4330 次 |
| 最近记录: |