小编Era*_*ndi的帖子

错误:从二进制存储读取数据时出现问题

当我尝试运行 flutter 应用程序时,出现如下错误。

\n
    \n
  • 出了什么问题:
    \n无法确定任务 \':app:compileDebugJavaWithJavac\' 的依赖关系。
    \n无法解析配置 \':app:debugCompileClasspath\' 的所有依赖项。
    \n从 /tmp/gradle4420452894670361188.bin 偏移量 455548 中的二进制存储读取数据时存在问题?真的
  • \n
\n

我已经在 build.gradle 中设置了这个

\n
\n

类路径 \'com.google.gms:google-services:4.3.3\'

\n
\n

我在 app/build.gradle 中有这个依赖项

\n
\n

应用插件:\'com.google.gms.google-services\'

\n
\n

当我删除 app/build.gradle google-services 插件时,应用程序工作正常。由于我需要 google-services 插件,我想知道如何解决这个问题。谢谢!

\n

这是 flutter doctor -v 输出。

\n
\n

[\xe2\x9c\x93] Flutter(频道稳定,2.2.3,在 Linux 上,区域设置 en_US.UTF-8)
\n\xc2\xa0 \xc2\xa0 \xe2\x80\xa2 Flutter 版本 2.2.3,位于 / opt/flutter
\n\xc2\xa0 \xc2\xa0 \xe2\x80\xa2 框架修订版 f4abaa0735 (6 天前), 2021-07-01 12:46:11 -0700
\n\xc2\xa0 \xc2\xa0 \xe2\x80\xa2 引擎修订版 241c87ad80
\n\xc2\xa0 \xc2\xa0 …

android google-play-services flutter

4
推荐指数
1
解决办法
1万
查看次数

标签 统计

android ×1

flutter ×1

google-play-services ×1