gpt4 book ai didi

android构建错误错误:In FontFamilyFont,无法找到属性android:fontVariationSettings

转载 作者:行者123 更新时间:2023-11-29 01:03:40 27 4
gpt4 key购买 nike

当我构建我的android项目时,出现以下错误

Error:In <declare-styleable> FontFamilyFont, unable to find attribute android:fontVariationSettings

之前我可以很好的搭建项目,也没有修改任何配置,以下是我的相关配置

项目build.gradle

buildscript {
repositories {
mavenCentral()
jcenter{
url 'http://jcenter.bintray.com/'
}
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
classpath 'org.greenrobot:greendao-gradle-plugin:3.2.1'
classpath 'me.tatarka:gradle-retrolambda:3.2.4'
}
}

allprojects {
repositories {
jcenter()
mavenCentral()
maven { url "https://jitpack.io" }
maven{ url 'https://download.01.org/crosswalk/releases/crosswalk/android/maven2' }
google()
}
}

task clean(type: Delete) {
delete rootProject.buildDir
}

应用构建.gradle

android {
compileSdkVersion 27
buildToolsVersion "27.0.2"
defaultConfig {
applicationId "com.bsyx.callsystem"
minSdkVersion 19
targetSdkVersion 27
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled true
}
}

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:support-v4:27.1.0'

compile 'com.android.support:appcompat-v7:27.1.0'
compile 'com.android.support:design:27.1.0'
compile 'com.android.support:recyclerview-v7:27.1.0'
compile 'com.android.support:cardview-v7:27.1.0'
}

错误详情如下

enter image description here

最佳答案

将“com.android.support:support-v4:27.1.0”更改为以下内容

configurations.all {
resolutionStrategy {
force 'com.android.support:support-v4:27.1.0'
}}

关于android构建错误错误:In <declare-styleable> FontFamilyFont,无法找到属性android:fontVariationSettings,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49186423/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com