' Gradle sync失败:未找到Gradle DSL方法:' minSdkVersdion()'

时间:2016-04-11 22:26:39

标签: android android-studio android-gradle build.gradle

Gradle sync失败:未找到Gradle DSL方法:' minSdkVersdion()。我正在使用最新版本的Android studio 2.0。

这是我更新的gradle。

apply plugin: 'com.android.application'

android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
defaultConfig {
    applicationId 'com.gkhindi'
    minSdkVersdion 16
    targetSdkVersion 23
    versionCode 1
    versionName '1.0.0'
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}
productFlavors {
}
}
buildscript {
repositories {
    jcenter()
}
dependencies {
    classpath 'com.android.tools.build:gradle:2.0.0'
}
}

allprojects {
repositories {
    jcenter()
}
}

dependencies {
 compile fileTree(dir: 'libs', include: ['*.jar'])
 compile files('libs/StartAppInApp-3.1.0.jar')
 compile files('libs/Shutterbug-1.0.0.jar')
 compile files('libs/Parse-1.11.0.jar')
 compile files('libs/bolts-tasks-1.3.0.jar')
//    compile 'com.android.support:support-v4:23.1.1'
 compile 'com.android.support:appcompat-v7:23.3.0'
 compile 'com.android.support:design:23.3.0'
 compile 'com.google.android.gms:play-services-ads:8.4.0'
 compile 'com.google.android.gms:play-services-games:8.4.0'
 compile 'com.android.support:recyclerview-v7:23.3.0'
 compile 'com.squareup.picasso:picasso:2.5.2'
 compile 'com.google.android.gms:play-services-analytics:8.4.0'
}
android {
  useLibrary 'org.apache.http.legacy'
}    

这是我最后的谜语。当我同步gradle然后我收到错误是' Gradle sync失败:未找到Gradle DSL方法:' minSdkVersdion()'。

1 个答案:

答案 0 :(得分:1)

build.gradle

中有拼写错误
minSdkVersdion 16

而不是

minSdkVersion 16