Error:Configuration with name 'default' not found. 解决办法
来源:互联网 发布:win7无法打开网络发现 编辑:程序博客网 时间:2024/05/21 14:51
原文地址
在导入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.)
- python strip()函数 删除字符串中无空白字符或者是无用字符
- jquery多张单图自动轮播
- Mac OSX Docker下搭建Android+Jenkins+Gitlab
- vijos1698单轨纵帆船
- caffe(二): 利用训练好的MNIST模型测试自己的手写字符图片
- Error:Configuration with name 'default' not found. 解决办法
- 七月突然的决定
- 支付开发所需配置信息
- LVS负载均衡+keepalived高可用+Nginx反向代理+Session共存
- 转载
- UICollectionViewController的使用
- vue1.0事件机制中的坑
- Web安全通讯之Token与JWT
- WLtoys 伟力 P949模型1:10拖拉机体验