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 \ --auto-add-overlay \ --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_derived_proguard_rules \ debug \ processDebugResources \ manifest_keep.txt \ --custom-package \ “包裹名字”\ -0 \ apk \ --output-text-symbols \ E:\ Android_Studio \ AlarmTestGithub \ KeepStreak \ app \ build \ intermediates \ symbols \ debug \ R.txt \ --no-version-vectors 守护程序:AAPT2 aapt2-3.2.0-alpha13-4662957-windows守护程序#0
答案 0 :(得分:0)
将您的compileSdkVersion
增加到29。您使用的库需要最新的compileSdkVersion
。