导入第三方项目因gradle引起的不能运行问题
2017-01-10 14:00
337 查看
Error: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:
Gradle’s dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
Re-download dependencies and sync project (requires network)
The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.
Stop Gradle build processes (requires restart)
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.
In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.
是因gradle配置不对引起的原因
1.作为插件的gradle
2.作为gradle包的gradle:
Android Studio 里面配置的地方在这里:
需要注意可以有两种方法:
第一种是用wrapper的方法,也是android studio 推荐的方法,它会自动的去下载
第二种是手动下载后指定位置
相关文章推荐
- AndroidStudio 从git 服务器导入项目后不能运行的问题解决
- android导入eclipse项目后,gradle版本引起的问题
- myeclipse 导入项目 输入此项目名不能运行问题
- 关于向android studio导入项目,gradle报错的问题
- Android Studio绝对实用的新手教程-1.导入第三方包或者运行eclipse项目
- Android Studio 导入第三方JAR编译正常,但运行时调用不了问题的解决方案
- 解决Android SlidingMenu-master 导入eclipse不能运行的问题
- ADB server didn't ACK * failed to start daemon * 和 Android Studio绝对实用的新手教程(1)导入第三方包或者运行eclipse项目
- Android Studio绝对实用的新手教程(1)导入第三方包或者运行eclipse项目
- Android Studio导入jar后无法识别、但项目能正常运行的问题
- IOS开发笔记之一——导入第三方库文件引起的ARC报错问题
- 问题:运行项目,却不能登录了。并且抛出来一个异常
- 关于模拟器不能运行项目问题:Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE
- 【Android Studio探索之路系列】之九:Gradle项目构建系统(三):第三方Android Studio项目导入
- Android问题集锦之三十四:android studio导入项目下载gradle-x.x.x-all.zip
- ThinkPHP 3.2 PHPExcel 导入导出文件 第三方类库不能用问题解决
- 不能导入Android项目问题的处理
- tomcat不能同时运行两个项目问题解决方案。
- ThinkPHP 3.2 + PHPExcel 导入导出文件 第三方类库不能用问题解决
- [导入]警告:不能将项目“project”中的依赖项“file”复制到运行目录,因为它将改写引用“file”。