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

Flutter构建报错:无法创建任务':app:createDebugVariantModel'求助

Flutter构建报错:Cannot invoke "Object.toString()" because "value" is null

环境信息

  • Flutter版本:3.16
  • 尝试过的Gradle版本:7.4、4.5

已尝试的解决方法

  • 执行flutter clean后重新构建
  • 删除Gradle缓存后重新构建
  • 通过Android Studio同步项目
  • 更换Gradle版本

具体报错内容

  • Exception is:
    com.intellij.openapi.externalSystem.model.ExternalSystemException: A build operation failed.
    Could not create task ':app:createDebugVariantModel'.
    Could not create task ':app:createDebugVariantModel'.
    Cannot invoke "Object.toString()" because "value" is null

内容的提问来源于stack exchange,提问作者Omar Qataberi

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.07.04 18:09:50