apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "20.0.0"
defaultConfig {
applicationId "com.example.first_studio"
minSdkVersion 11
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {11
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.2.1'
compile 'com.android.support:design:23.2.1'
}
//属性解释:
compileSdkVersion :编译sdk版本号
buildToolsVersion :编译工具版本号:查看sdk路径下build-tools文件下的某个版本sdk文件夹下的source.properties里面的Pkg.Revision值
compile 'com.android.support:appcompat-v7:23.2.1' (路径:sdk\extras\android\support下source.properties查看Pkg.Revision=23.2.1)
compile 'com.android.support:design:23.2.1'(数字版本号同上)
compileSdkVersion必须和compile 后面的值一致小数点后不考虑取整数比较:这里是23