Android studio(4.0) build.gradle "app"

apply plugin: 'com.android.application'

//脚本管理
android {
    compileSdkVersion 30
    buildToolsVersion "30.0.1"

    defaultConfig {
        applicationId "com.example.xaingmu2"
        minSdkVersion 21 //最低支持sdk21
        targetSdkVersion 30 //最高支持sdk30
        versionCode 1  //版本号
        versionName "1.0" //版本名字

        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }
  // 混淆文件
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
}


//第三方库
dependencies {
    implementation fileTree(dir: "libs", include: ["*.jar"])
    implementation 'androidx.appcompat:appcompat:1.2.0'
    implementation 'androidx.constraintlayout:constraintlayout:2.0.1'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'androidx.test.ext:junit:1.1.2'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'

}

 

posted @ 2020-10-03 21:38  公众号_白泽笔记  阅读(267)  评论(0)    收藏  举报