You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

执行flutter clean等操作后Gradle构建无法生成APK文件的问题求助

执行flutter clean等操作后Gradle构建无法生成APK文件的问题求助

我在执行了flutter clean、File -> Invalidate Caches,再通过flutter pub get重新构建Flutter项目后,遇到了一个超烦人的问题!

运行项目时弹出了这个该死的提示:

Gradle build failed to produce an .apk file. It's likely that this file was generated under ~\build, but the tool couldn't find it.

Gradle构建失败提示

有没有大佬能帮帮我啊?到底该怎么解决这个破问题?还有为啥Gradle就是生成不了APK啊?

备注:内容来源于stack exchange,提问作者Ahmed Nussair

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.15 15:03:17