Error:Configuration with name 'default' not found. 解决办法 (React Native项目)
来源:互联网 发布:系统分析师 知乎 编辑:程序博客网 时间:2024/05/29 10:54
原文地址
在导入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. 解决办法 (React Native项目)
- React native 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. 解决办法
- Error:Configuration with name 'default' not found. 解决办法
- 【原】React Native踩坑系列之--Configuration with name 'default' not found react-native
- 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.
- 报错(Error:Configuration with name 'default' not found.)
- 报错(Error:Configuration with name 'default' not found.)
- Android Studio gradle 编译提示‘Error:Configuration with name 'default' not found.’ 解决办法
- qt基础1
- 关于app设计原型的工具总结
- jquery实现点击a链接,跳转之后,该a链接处显示背景色
- Python编码错误的解决办法SyntaxError: Non-ASCII character '\xe5' in file
- 面试题目汇总
- Error:Configuration with name 'default' not found. 解决办法 (React Native项目)
- kcp协议详解
- 1.前端基础介绍
- 27. Remove Element
- Android Studio中全局替换简单的使用正则表达式
- Python文字(汉字)转语音https://zhuanlan.zhihu.com/p/26726297
- upper_bound和lower_bound用法
- Nginx+uWSGI+Django Centos 部署
- Collections排序sort排序list多条件排序