As中sdk版本问题
程序员文章站
2022-06-21 23:46:33
打开下图文件apply plugin: 'com.android.application'android {//对应的是 File-->Project -->Properties 选择对应的Android版本d的API compileSdkVersion 25//对应 SDK 目录 ...\AndroidSdk\build-tools buildToolsVersion "25.0.3" defaultConfig { applicat...
打开下图文件
apply plugin: 'com.android.application'
android {
//对应的是 File-->Project -->Properties 选择对应的Android版本d的API
compileSdkVersion 25
//对应 SDK 目录 ...\AndroidSdk\build-tools
buildToolsVersion "25.0.3"
defaultConfig {
applicationId "com.example.administrator.myapplication"
minSdkVersion 15
//对应的是 File-->Project -->Properties 选择对应的Android版本d的API
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
//版本对应目录...\Administrator\AndroidSdk\extras\android\m2repository\com\android\support\appcompat-v7
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
testCompile 'junit:junit:4.12'
}
本文地址:https://blog.csdn.net/qq_41630695/article/details/107599963
上一篇: Python环境搭建和开发入门