Error:In <declare-styleable> FontFamilyFont, unable to find attribute android:font after Glide 4.4 upgrade

Error:In <declare-styleable> FontFamilyFont, unable to find attribute android:font after Glide 4.4 upgrade

我在我的项目中使用 Glide 3.7,由于性能问题,我想将其更新到最新版本。如 Glide 网站所述,我从 Gradle 更新了 Glide。但是更新后,我在 Gradle 构建过程中遇到了一些错误。

Error:In FontFamilyFont, unable to find attribute android:font

并且

Error:In FontFamilyFont, unable to find attribute android:fontWeight

如您在 Glide Documentation 中所见:

Minimum Android SDK: Glide v4 requires a minimum API level of 14.
Compile Android SDK: Glide v4 requires you to compile against API 26 or later.
If you need to support older versions of Android, consider staying on Glide v3, which works on API 10, but is not actively maintained.