xinli/xinli-App/app/build.gradle

39 lines
1.1 KiB
Groovy
Raw Permalink Normal View History

2025-11-23 10:19:32 +08:00
apply plugin: 'com.android.application'
android {
compileSdkVersion 30
// 尝试使用常见的 Build Tools 版本,如果都没有,请使用 Android Studio 安装
// 可以尝试的版本30.0.3, 30.0.2, 30.0.1, 30.0.0, 29.0.3, 29.0.2
buildToolsVersion "30.0.3"
defaultConfig {
applicationId "com.xinli.app"
minSdkVersion 21
targetSdkVersion 30
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
// 允许未签名的release版本用于测试
signingConfig signingConfigs.debug
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
implementation 'androidx.appcompat:appcompat:1.3.1'
implementation 'com.google.android.material:material:1.4.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
}