【发布时间】:2021-09-08 19:22:48
【问题描述】:
【问题讨论】:
-
你使用 java 还是 kotlin ?
标签: android
【问题讨论】:
标签: android
通常您的成绩文件应包含以下行:
android {
compileSdkVersion 30
defaultConfig {
applicationId "com.domaine.appName"
minSdkVersion 21
targetSdkVersion 30
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
尝试在两者之间包含缺失的行
android {
}
但不要忘记将 com.domaine.appName 更改为您的 domaine 和 appName。
Please take a look here because it was already answered here.
【讨论】: