Gradle sync失败:找不到参数的方法android()

时间:2016-10-26 17:45:34

标签: android-gradle

我刚刚导入了我买的源代码,我收到了这个错误

Gradle sync失败:找不到根项目'视频'视频中的参数[build_5olawx6gv0jicj5jn1uc171mc $ _run_closure2 @ 5eaaab93]的方法android()类型为org.gradle.api.Project。

这是我的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:1.1.0'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}
allprojects {
    repositories {
        jcenter()
    }
}

android {
    buildToolsVersion '21.1.2'
    defaultConfig {
        applicationId 'com.keakster.video'
        versionName '1.0'
        minSdkVersion 17
        targetSdkVersion 19
    }
    productFlavors {
    }
}
dependencies {
}

这里真的需要一些帮助

0 个答案:

没有答案