Error:org.gradle.api.internal.tasks.DefaultTaskInputs$TaskInputUnionFileCollection cannot be cast to org.gradle.api.internal.file.collections.DefaultConfigurableFileCollection
主要原因在于project中的build.gradle与gradle-wrapper.properties 中的gradle版本不一致导致
目前我的build.gradle 版本:
classpath 'com.android.tools.build:gradle:2.1.3'
gradle-wrapper.properties中的:
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip