代码之家  ›  专栏  ›  技术社区  ›  Elye

资源android:attr/fontVariationSettings 错误:资源android:attr/ttcIndex 找不到

  •  2
  • Elye  · 技术社区  · 7 年前

    我得到了一个错误,如下最近在即时应用程序编译

    [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.

    一直都很好,没有什么变化。然后,编译现在突然失败了。什么会导致这个问题,如何解决?

    1 回复  |  直到 7 年前
        1
  •  1
  •   Elye    7 年前

    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

    推荐文章