resource android:attr/fontVariationSettings and error: 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.

编译一直很好,没有任何变化。然后突然编译现在失败了。什么可能导致此问题,以及如何解决?

显然问题出在 butterknife 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

中提交问题