Could not find method android() for arguments
来源:互联网 发布:matlab混合编程 pdf 编辑:程序博客网 时间:2024/05/01 21:16
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 1
- 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 runProguard() for arguments?
- 解决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问题
- Could not find method compile() for arguments
- Could not find method compile() for arguments
- Could not find method compile() for arguments
- Could not find method compile() for arguments
- Could not find method runProguard() for arguments [false] on BuildType_Decorated{
- Could not find method runProguard() for arguments [false] on B...
- Could not find method jcenter() for arguments [] on repository container
- ButterKnife:“Error:Could not find method apt() for arguments ...”
- 解决Android Studio 导入外部项目时报错:Could not find method android() for arguments
- studio导入第三方library
- 打造android ORM框架opendroid(一)——ORM框架的使用
- MacOSX进阶心得
- 【Jsoup in action】Jsoup到底是什么
- java IO流之一 IO流介绍
- Could not find method android() for arguments
- MyEclipse编写第一个JavaWeb工程、更改字体及web项目目录结构
- 欢迎使用CSDN-markdown编辑器
- java的服务是每收到一个请求就新开一个线程来处理吗?tomcat呢?
- android小技巧--shape自定义阴影效果
- LA 3971 组装电脑
- MYSQL的创建用户,授权用户,删除用户,查看用户
- java IO流之二 使用IO流读取存储文件
- Mybatis开发步骤附代码