场景
自己新写的项目,运行报错:
AAPT: error: resource android:attr/fontVariationSettings not found.
解决方案
将compileSdkVersion、targetSdkVersion都改成了28.
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.hiluckymoney"
minSdkVersion 21
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}
网友评论