当前位置: 移动技术网 > 移动技术>移动开发>Android > As中sdk版本问题

As中sdk版本问题

2020年07月27日  | 移动技术网移动技术  | 我要评论

打开下图文件

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

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网