关于android studio中导入的项目同步中的错误

时间:2016-04-05 12:43:37

标签: android

导入项目后

显示此错误

错误:(2,0)带有id' com.android.application'的插件未找到。 build.gradle是:

apply plugin: 'com.android.application'
    android {
    compileSdkVersion 23
    buildToolsVersion "23.0.1"

    defaultConfig {
        applicationId "com.example.android.movienight"
        minSdkVersion 14
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'),                'proguard-rules.pro'
    }
}
    buildTypes.each {
        it.buildConfigField 'String', 'THE_MOVIE_DB_API_KEY', "My API Key"
   }
 }
  repositories {
      mavenCentral()
  }
   dependencies {
   compile fileTree(dir: 'libs', include: ['*.jar'])
   testCompile 'junit:junit:4.12'
   compile 'com.android.support:appcompat-v7:23.1.0'
   compile 'com.android.support:design:23.1.0'
   compile 'com.squareup.picasso:picasso:2.5.2'
   compile 'com.android.support:support-v4:23.1.0'}
apply plugin: 'application'

0 个答案:

没有答案