Typeface
类包含一个静态findFromCache
方法:
https ://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/graphics/java/android/graphics/Typeface.java
我还在Typeface
源代码中看到了 IntelliJ 中的方法。
但是,当我尝试使用它时,我得到了Unresolved reference: findFromCache
错误。我当前的 API 版本是 28。目标 API 26。
为什么 SDK 中存在该方法时会显示错误?