java.lang.NoSuchMethodError: No

2019-12-23  本文已影响0人  Aaglnny

java.lang.NoSuchMethodError: No static method getFont(Landroid/content/Context;ILandroid/util/TypedValue;ILandroid/widget/TextView;)Landroid/graphics/Typeface;
in class Landroid/support/v4/content/res/ResourcesCompat; or its super classes (declaration of 'android.support.v4.content.res.ResourcesCompat' appears in /data/app/com.ik.githubbrowser-YvwoGrxR8QaUEZ3IEqFVLQ==/split_lib_dependencies_apk.apk)

解决方法:将buildToolsVersion 由'26.0.2'改成'27.0.3'
参考链接:https://stackoverflow.com/questions/47113948/java-lang-nosuchmethoderror-no-static-method-getfontlandroid-content-contexti/47126127#47126127

上一篇下一篇

猜你喜欢

热点阅读