[已解决]Gradle 3.0 出现问题

使用Gradle3.0的时候报错:

 Gradle sync failed: Cause: org.gradle.api.internal.tasks.DefaultTaskInputs$TaskInputUnionFileCollection cannot be cast to org.gradle.api.internal.file.collections.DefaultConfigurableFileCollection

         Consult IDE log for more details (Help | Show Log)


Failed to sync Gradle project 'mi-cashier-android'
Error:Cause: org.gradle.api.internal.tasks.DefaultTaskInputs$TaskInputUnionFileCollection cannot be cast to org.gradle.api.internal.file.collections.DefaultConfigurableFileCollection
Possible causes for this unexpected error include:In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.



具体的问题没有调查清楚,

解决的办法

可以暂时的将Gradle降为2.14.1 就可以了

如何修改这里的Gradle包,请参考:

2.7-3 Android Studio 的Gradle一点理解, 查看gradle 版本和android 插件的版本



你可能感兴趣的:(gradle)