最近在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.
一直编译良好,没有任何变化。然后突然编译失败了。什么原因可能导致此问题,以及如何解决?
答案 0 :(得分:1)
显然,问题出在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提交了问题