- 类型“GoogleServicesTask”字段“intermediateDir”,没有相应的 getter 已使用 @OutputDirectory 进行注释

Man*_*ngh 24 android firebase

任务“:app:processDebugGoogleServices”(类型“GoogleServicesTask”)的配置发现了一些问题。

  • 没有相应 getter 的类型“GoogleServicesTask”字段“intermediateDir”已使用 @OutputDirectory 进行注释。
  • 尝试:使用 --stacktrace 选项运行以获取堆栈跟踪。使用 --info 或 --debug 选项运行以获得更多日志输出。使用 --scan 运行以获得完整的见解。

小智 46

将 google-services 升级到 4.3.8 为我解决了这个问题。

您可以通过替换 build.graddle 文件中的现有版本来完成此操作。

dependencies {
    classpath 'com.google.gms:google-services:4.3.8'
}
Run Code Online (Sandbox Code Playgroud)


Sam*_*ain 20

更新项目 gradle 中的 google-service 依赖项

  classpath 'com.google.gms:google-services:4.3.10'
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述