【问题标题】:Why I am getting gradle error in flutter android project?为什么我在 Flutter android 项目中出现 gradle 错误?
【发布时间】:2020-11-08 19:14:32
【问题描述】:

我不知道这个错误是什么意思,我以前从未见过。这个应用程序使用 firebase 登录和 google 登录进行登录。 这是错误,我在flutter run 命令之后遇到的异常


* What went wrong:
Could not create service of type FileHasher using GradleUserHomeScopeServices.createCachingFileHasher().
> Timeout waiting to lock file hash cache (C:\Users\User\.gradle\caches\5.6.2\fileHashes). It is currently in use by another Gradle instance.
  Owner PID: 19528
  Our PID: 24344
  Owner Operation: 
  Our operation: 
  Lock file: C:\Users\User\.gradle\caches\5.6.2\fileHashes\fileHashes.lock

* 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.

【问题讨论】:

    标签: android firebase flutter gradle dart


    【解决方案1】:

    您可能有另一个使用 gradle 实例的 Flutter 进程或 android 进程实例。 解决此问题的最简单方法是重新启动计算机。 或者如果你有这样的知识,你可以找到另一个进程并杀死它。

    【讨论】:

      猜你喜欢
      • 2019-04-02
      • 2020-09-12
      • 2020-08-12
      • 1970-01-01
      • 2016-08-04
      • 2021-01-24
      • 2020-04-30
      • 1970-01-01
      • 2019-03-25
      相关资源
      最近更新 更多