![](/img/trans.png)
[英]AAPT: error: resource android:attr/fontVariationSettings not found and resource android:attr/ttcIndex not found
[英]resource android:attr/fontVariationSettings and error: resource android:attr/ttcIndex not found
我最近在 Instant App 編譯中遇到如下錯誤
[2018-09-24T04:42:32Z] FAILURE: Build failed with an exception. [2018-09-24T04:42:32Z] [2018-09-24T04:42:32Z] * What went wrong: [2018-09-24T04:42:32Z] Execution failed for task ':base-feature:processProductionReleaseFeatureResources'. [2018-09-24T04:42:32Z] > Android resource linking failed [2018-09-24T04:42:32Z] Output: /project/base-feature/build/intermediates/incremental/mergeProductionReleaseFeatureResources/merged.dir/values/values.xml:630: error: resource android:attr/fontVariationSettings not found. [2018-09-24T04:42:32Z] /project/base-feature/build/intermediates/incremental/mergeProductionReleaseFeatureResources/merged.dir/values/values.xml:631: error: resource android:attr/ttcIndex not found. [2018-09-24T04:42:32Z] error: failed linking references.
一直編譯良好,沒有任何變化。 然后突然編譯現在失敗了。 什么可能導致此問題,以及如何解決?
顯然這個問題是由於黃油刀 9.0.0-SNAPSHOT
dependencies {
implementation 'com.jakewharton:butterknife:9.0.0-SNAPSHOT'
annotationProcessor 'com.jakewharton:butterknife-compiler:9.0.0-SNAPSHOT'
}
我已在https://github.com/JakeWharton/butterknife/issues/1371 中作為問題提交
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.