解决Could not find method android() for arguments问题
来源:互联网 发布:淘宝旅行机票网 编辑:程序博客网 时间:2024/05/01 22:33
从安卓巴士下载了一个app源码,导入Android studio后一直有bug存在,编译出现如下错误:
Error:(23, 0) Could not find method android() for arguments [****] on root project '****' of type org.gradle.api.Project.
最终解决方法是,打开build.gradle如下:
// Top-level build file where you can add configuration options common to all sub-projects/modules.buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.2.2' classpath 'com.novoda:bintray-release:0.3.4' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files }}allprojects { repositories { jcenter() }}task clean(type: Delete) { delete rootProject.buildDir}android { compileSdkVersion 23 buildToolsVersion '23.0.3'}dependencies {}
将其中的
android { compileSdkVersion 23 buildToolsVersion '23.0.3'}
删除或注释掉后重新编译通过。
参考文章
0 0
- 解决Could not find method android() for arguments问题
- 解决Could not find method android() for arguments问题
- 解决Could not find method android() for arguments问题
- Could not find method android() for arguments
- Android Studio 出现错误 Could not find method android() for arguments .... 问题及解决
- Android Studio Exception: Could not find method android() for arguments
- Android Studio Exception: Could not find method android() for arguments
- Android Studio:Could not find method android() for arguments
- 解决Android Studio 导入外部项目时报错:Could not find method android() for arguments
- Android Studio 解决错误 Could not find method android() for arguments
- Could not find method android() for arguments Android Studio 解决错误
- Android Studio 解决错误 Could not find method android() for arguments
- Android Studio Could not find method android() for arguments 错误解决
- Android Studio Could not find method runProguard() for arguments?
- 解决问题:Could not find method android() for arguments
- 解决error[22,0]Could not find method android() for arguments的方法
- Could not find method compile() for arguments
- Could not find method compile() for arguments
- C++类成员变量初始化顺序问题
- oracle的日期函数
- 【OkHttp】封装帮助类
- 数据库处理
- UDP 调用 connect的作用--4A--个人总结
- 解决Could not find method android() for arguments问题
- Android studio 启动错误——Gradle
- 机器学习_统计学习_深度学习的一些公式
- wamp,MySQL,perl的联谊之路
- log4j将日志输出到数据库
- 高度不定 垂直居中
- 嵌套动画如何使用
- Java从一个数组指定位置拷贝到另外一个数组的指定位置-新法
- 6.0新特性