gradle(5)
使用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:&ul&&li&Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
&a href=&syncProject&&Re-download dependencies and sync project (requires network)&/a&&/li&&li&The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.
&a href=&stopGradleDaemons&&Stop Gradle build processes (requires restart)&/a&&/li&&li&Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.&/li&&/ul&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包,请参考:
参考知识库
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:198703次
积分:7005
积分:7005
排名:第2356名
原创:454篇
转载:222篇
译文:36篇
评论:41条
(31)(75)(26)(30)(56)(28)(30)(70)(125)(154)(58)(36)