【问题标题】:resource android:attr/fontVariationSettings and error: resource android:attr/ttcIndex not found资源 android:attr/fontVariationSettings 和错误:资源 android:attr/ttcIndex 未找到
【发布时间】:2018-09-24 07:22:39
【问题描述】:

我最近在 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.

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

【问题讨论】:

    标签: android android-gradle-plugin build.gradle android-instant-apps


    【解决方案1】:

    显然问题是由于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 提交问题

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-12-02
      • 2018-08-18
      • 2019-05-01
      • 2019-11-02
      • 1970-01-01
      • 2020-11-28
      • 2020-01-04
      相关资源
      最近更新 更多