如何修复AAPT:错误:找不到资源android:attr / fontVariationSettings?

时间:2020-08-08 03:53:36

标签: android-studio flutter gradle build

我已经在多个平台上看到了这个问题,有人知道它是什么以及如何解决它?

错误消息:

+---+---------+--------+
| id| SomeNumt|     SUM|
+---+---------+--------+
|  1|       10|      10|
|  2|       12|      22|
|  4|       15|      37|   -- 10+22+15
|  5|       23|      60|   -- 10+22+15+23
+---+---------+--------+

构建gradle:

AAPT: error: resource android:attr/fontVariationSettings not found.

AAPT: error: resource android:attr/ttcIndex not found.

FAILURE: Build failed with an exception.


What went wrong:

Execution failed for task ':app:processReleaseResources'.

Failed to process resources, see aapt output above for details.

pubspec:

android {
    compileSdkVersion 27

    defaultConfig {
        applicationId "app name"
        minSdkVersion 16
        targetSdkVersion 27
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
}

1 个答案:

答案 0 :(得分:0)

如果有人遇到相同的问题,那就是程序包兼容性方面的问题,在这种情况下,就是过时的共享首选项。