【发布时间】:2018-09-14 06:52:01
【问题描述】:
我在通过 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
知道什么可能导致此错误吗?谢谢
【问题讨论】:
-
请问
Try: Run with --stacktrace option to get the stack trace -
你的 gradle 插件版本是什么?
-
或者更好:
--scan在 gradle.properties 的某个地方 -
我正在使用类路径 'com.android.tools.build:gradle:3.1.4' 我无法正确复制它。这只是随机发生的。
-
issuetracker.google.com/issues/114705291 - 谷歌跟踪器中的相关问题
标签: android android-gradle-plugin google-play-services