Error:org.gradle.api.internal.tasks.DefaultTaskInputs$TaskInputUnionFileCollection cannot be cast to

来源:互联网 发布:win10 蓝牙共享网络 编辑:程序博客网 时间:2024/05/17 22:47

  • Error:org.gradle.api.internal.tasks.DefaultTaskInputs$TaskInputUnionFileCollection cannot be cast to
Error:org.gradle.api.internal.tasks.DefaultTaskInputs$TaskInputUnionFileCollection cannot be cast to org.gradle.api.internal.file.collections.DefaultConfigurableFileCollectionPossible causes for this unexpected error include:<ul><li>Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
这是打开Android Studio项目报的错误提示,单纯从上面的提示还是不能太直接的知道什么问题,我估计Gradle版本比较低的问题,有可能是这个问题。于是我把项目的版本改高点再同步一下就好了,问题解决了。
遇到的问题截图:



2、修改之后的截图



阅读全文
1 0
原创粉丝点击