Thanks for reporting this problem.
I assume that removing the .gradle directory in the root project directory would fix the problem. However it seems that this might be a real bug that needs attention.
Please take a backup of that directory (.gradle in the root project directory) before removing it since it could possibly help later investigation. You might also want to upgrade the project to use latest stable version which is currently 3.0 .
Just for further reference, the NPE happened at this location (3.0-20160715000024) .
Caused by: java.lang.NullPointerException: null value in entry: dependencyCacheDir=nullClose stacktrace
at com.google.common.collect.CollectPreconditions.checkEntryNotNull(CollectPreconditions.java:33)
at com.google.common.collect.ImmutableMap.entryOf(ImmutableMap.java:135)
at com.google.common.collect.ImmutableMap$Builder.put(ImmutableMap.java:206)
at com.google.common.collect.ImmutableSortedMap$Builder.put(ImmutableSortedMap.java:371)
at org.gradle.api.internal.changedetection.state.CacheBackedTaskHistoryRepository$LazyTaskExecution$3.create(CacheBackedTaskHistoryRepository.java:281)
at org.gradle.api.internal.changedetection.state.CacheBackedTaskHistoryRepository$LazyTaskExecution$3.create(CacheBackedTaskHistoryRepository.java:276)
at org.gradle.cache.internal.DefaultCacheAccess.useCache(DefaultCacheAccess.java:192)
at org.gradle.cache.internal.DefaultPersistentDirectoryStore.useCache(DefaultPersistentDirectoryStore.java:102)
at org.gradle.cache.internal.DefaultCacheFactory$ReferenceTrackingCache.useCache(DefaultCacheFactory.java:183)
at org.gradle.api.internal.changedetection.state.DefaultTaskArtifactStateCacheAccess.useCache(DefaultTaskArtifactStateCacheAccess.java:56)
at org.gradle.api.internal.changedetection.state.CacheBackedTaskHistoryRepository$LazyTaskExecution.getOutputFilesSnapshot(CacheBackedTaskHistoryRepository.java:276)
at org.gradle.api.internal.changedetection.changes.DefaultTaskArtifactStateRepository$TaskArtifactStateImpl.getOutputFiles(DefaultTaskArtifactStateRepository.java:126)
at org.gradle.api.internal.tasks.DefaultTaskOutputs.getPreviousFiles(DefaultTaskOutputs.java:247)
at org.gradle.language.base.internal.tasks.SimpleStaleClassCleaner.execute(SimpleStaleClassCleaner.java:33)
at org.gradle.api.internal.tasks.compile.CleaningJavaCompilerSupport.execute(CleaningJavaCompilerSupport.java:32)
at org.gradle.api.internal.tasks.compile.CleaningJavaCompilerSupport.execute(CleaningJavaCompilerSupport.java:25)
at org.gradle.api.tasks.compile.JavaCompile.performCompilation(JavaCompile.java:169)
at org.gradle.api.tasks.compile.JavaCompile.compile(JavaCompile.java:150)
at org.gradle.api.tasks.compile.JavaCompile.compile(JavaCompile.java:98)
@lptr , could you take a look at this when you come back?
3.0-20160715000024 is older than 3.0… oh right, that was released about a week ago Anyway, removing the .gradle directory does indeed fix the problem for me.