gpt4 book ai didi

java - 资源 android :attr/fontVariationSettings not found. 和 android :attr/ttcIndex not found. 错误出自何处

转载 作者:行者123 更新时间:2023-12-02 02:51:50 24 4
gpt4 key购买 nike

android:attr/fontVariationSettings 未找到。和 android:attr/ttcIndex 未找到。不知从何而来的错误

我尝试将compileSdkVersion更改为28(有27个atm),但这只会给我带来更多错误

android {
compileSdkVersion 27
defaultConfig {
applicationId "package name"
minSdkVersion 16
targetSdkVersion 27
versionCode 2
versionName "2.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support:customtabs:27.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.google.android.gms:play-services-ads:17.1.2'
implementation 'com.google.android.ads.consent:consent-library:1.0.6'
implementation 'com.google.android.gms:play-services-plus:16.0.0'
implementation 'com.google.firebase:firebase-core:17.0.1'

Android资源链接失败输出:E:\Android_Studio\AlarmTestGithub\KeepStreak\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:373:错误:找不到资源 android:attr/fontVariationSettings。E:\Android_Studio\AlarmTestGithub\KeepStreak\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:373:错误:找不到资源 android:attr/ttcIndex。错误:链接引用失败。

命令:C:\Users\Anton.gradle\caches\transforms-1\files-1.1\aapt2-3.2.0-alpha13-4662957-windows.jar\3a26e83e63ade5648a5de3c39b9c37ce\aapt2-3.2.0-alpha13-4662957- windows\aapt2.exe 链接 -I\ C:\Users\Anton\AppData\Local\Android\Sdk\platforms\android-27\android.jar\ - 显现\ E:\Android_Studio\AlarmTestGithub\KeepStreak\app\build\intermediates\merged_manifests\debug\processDebugManifest\merged\AndroidManifest.xml\ -o\ E:\Android_Studio\AlarmTestGithub\KeepStreak\app\build\intermediates\processed_res\debug\processDebugResources\out\resources-debug.ap_\ -R\ @E:\Android_Studio\AlarmTestGithub\KeepStreak\app\build\intermediates\incremental\processDebugResources\resources-list-for-resources-debug.ap_.txt\ --自动添加覆盖\ --java\ E:\Android_Studio\AlarmTestGithub\KeepStreak\app\build\generated\not_namespaced_r_class_sources\debug\processDebugResources\r\ --proguard-main-dex\ E:\Android_Studio\AlarmTestGithub\KeepStreak\app\build\intermediates\legacy_multidex_aapt_driven_proguard_rules\debug\processDebugResources\manifest_keep.txt\ --自定义包\ “包裹名字”\ -0\ 应用程序\ --输出文本符号\ E:\Android_Studio\AlarmTestGithub\KeepStreak\app\build\intermediates\symbols\debug\R.txt\ --无版本 vector 守护进程:AAPT2 aapt2-3.2.0-alpha13-4662957-windows 守护进程 #0

最佳答案

compileSdkVersion 增加到 29。您使用的库需要最新的 compileSdkVersion

关于java - 资源 android :attr/fontVariationSettings not found. 和 android :attr/ttcIndex not found. 错误出自何处,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57103467/

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