android – 无法在null对象上调用方法containsKey()

当我通过gradle构建我的 Android项目时出现此错误.它大概每周发生一次.
FAILURE: Build Failed with an exception.

* What went wrong:
Failed to capture snapshot of input files for task ':xxxxxxxx:compileDebugAidl' property 'importDirs' during up-to-date check.
> Cannot invoke method containsKey() on null object

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

* Get more help at https://help.gradle.org

知道什么可能导致这个错误吗?谢谢

解决方法

在谷歌修复bug之前,降级到播放服务4.0.1似乎已经为我解决了这个问题:

classpath’com.google.gms:google-services:4.0.1′

https://stackoverflow.com/a/50930048/4096987

相关文章

###实现效果*本实例主要实现用ViewPage和Fragment实现选项卡...
一、安装 JDK 下载JDK最新版本,下载地址如下: http://www....
这篇“android轻量级无侵入式管理数据库自动升级组件怎么实现...
今天小编给大家分享一下Android实现自定义圆形进度条的常用方...
这篇文章主要讲解了“Android如何解决字符对齐问题”,文中的...
这篇文章主要介绍“Android岛屿数量算法怎么使用”的相关知识...