1. 程式人生 > >執行ionic cordova build命令報- unable to find attribute android:fontVariationSettings and android:ttcInde

執行ionic cordova build命令報- unable to find attribute android:fontVariationSettings and android:ttcInde

ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontVariationSettings
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:ttcIndex

在build.grade檔案中新增即可:

configurations.all {
    resolutionStrategy {
        force 'com.android.support:support-v4:27.1.0'
    }
}

詳細解決方案見原文連結:

https://stackoverflow.com/questions/49162538/cordova-build-android-unable-to-find-attribute-androidfontvariationsettings-a