Error:Configuration with name 'default' not found. 解决办法
来源:互联网 发布:知无涯 编辑:程序博客网 时间:2024/05/21 13:54
转自:http://www.wxtlife.com/2015/09/26/slove-studio-default-not-found/
在导入studio工程的时候,进行sync的时候,提示Error:Configuration with name ‘default’ not found.
之前由于对gradle不熟悉,所以没有找到原因,其实也是偷懒,没有认真去排查问题,今天又遇到了,就折腾了会,把所有的配置文件都打开看,最终解决问题了,发现尽然是个低级的不能低级的问题,故记录下,警醒自己。
打开settings.gradle发现里面有很多个include ‘:app’这样的include,然而发现在工程的目录下面根本没有include的项目,所以将需要include的项目添加进来,如果include的项目不需要,则将其include语句直接删掉,重新sync尝试。
按照上面的操作,要么添加了相应inlcude的工程进来,但是发现还是会提示这样的default not found语句,怎么回事呢,原来用gradle编译的工程,每个工程下面都必须要有build.gradle文件,才能够编译include的工程。整个大工程才能sync通过。把include工程中都添加上相应的gradle配置文件,再重新进行sync,整个工程都通过了。
=========================================================================================
踩过的坑。。。
0 0
- Error:Configuration with name 'default' not found. 解决办法
- Error:Configuration with name 'default' not found. 解决办法
- Error:Configuration with name 'default' not found. 解决办法
- Error:Configuration with name 'default' not found. 解决办法
- Error:Configuration with name 'default' not found. 解决办法
- Error:Configuration with name 'default' not found. 解决办法
- Configuration with name 'default' not found 解决办法
- Error:Configuration with name 'default' not found.
- Error:Configuration with name 'default' not found.
- Error:Configuration with name 'default' not found.
- Error:Configuration with name 'default' not found.
- Error:Configuration with name 'default' not found.
- Android Studio gradle 编译提示‘Error:Configuration with name 'default' not found.’ 解决办法
- Error:Configuration with name 'default' not found. 解决办法 (React Native项目)
- 解决Error:Configuration with name 'default' not found.
- androidStudio Error:Configuration with name 'default' not found.
- Android studio Gradle Error:Configuration with name 'default' not found.
- 报错(Error:Configuration with name 'default' not found.)
- Image-based Lighting approaches and parallax-corrected cubemap
- DBA必知的mysql备份与还原的几大方法
- Spring自动化装配-Spring实战读书笔记
- Linux依赖包下载
- MeanShift的目标跟踪算法
- Error:Configuration with name 'default' not found. 解决办法
- AMD Cubemapgen for physically based rendering
- WPF 样式和资源
- Android内存优化(二)
- 【机器学习】回归问题(一)
- MySQL 高可用性—keepalived+mysql双主(有详细步骤和全部配置项解释)
- js 文本显示一段时间后隐藏
- 李嘉诚:知识并不一定使你的财富增加,但是能增加机会
- MySQL主从复制