EasyDemo*解决Could not find method android() for arguments问题???

解决方案:打开项目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'
}

删除或注释掉后重新编译通过。 

猜你喜欢

转载自blog.csdn.net/qq_36287601/article/details/80490864
今日推荐