Ionic異常及解決

石曼迪發表於2018-03-09

1. 編譯時提示:

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

解決:在platforms/android/build.gradle中頂級節點加入:

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

 

相關文章