java.lang.NoSuchMethodError: No static method getFont(Landroid/content/Context;ILandroid/util/TypedV
2018-01-16 16:43
841 查看
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.paymew.pay.pos.checkstand-1/split_lib_dependencies_apk.apk) at android.support.v7.widget.TintTypedArray.getFont(TintTypedArray.java:119) at android.support.v7.widget.AppCompatTextHelper.updateTypefaceAndStyle(AppCompatTextHelper.java:208) at android.support.v7.widget.AppCompatTextHelper.loadFromAttributes(AppCompatTextHelper.java:110) at android.support.v7.widget.AppCompatTextHelperV17.loadFromAttributes(AppCompatTextHelperV17.java:38) at android.support.v7.widget.AppCompatTextView.<init>(AppCompatTextView.java:81) at android.support.v7.widget.AppCompatTextView.<init>(AppCompatTextView.java:71) at android.support.v7.app.AppCompatViewInflater.createView(AppCompatViewInflater.java:103) at android.support.v7.app.AppCompatDelegateImplV9.createView(AppCompatDelegateImplV9.java:1024) at android.support.v7.app.AppCompatDelegateImplV9.onCreateView(AppCompatDelegateImplV9.java:1081) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:725) at android.view.LayoutInflater.rInflate(LayoutInflater.java:806) at android.view.LayoutInflater.rInflate(LayoutInflater.java:809) at android.view.LayoutInflater.rInflate(LayoutInflater.java:809) at android.view.LayoutInflater.inflate(LayoutInflater.java:504) at android.view.LayoutInflater.inflate(LayoutInflater.java:414) at android.view.LayoutInflater.inflate(LayoutInflater.java:365) at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:378) at android.app.Dialog.setContentView(Dialog.java:490)
修改APP下的build.gradle文件中的下面内容就好了
compileSdkVersion 27 buildToolsVersion '27.0.3'
minSdkVersion 16 targetSdkVersion 27
implementation 'com.android.support:support-v4:27.0.2' implementation 'com.android.support:appcompat-v7:27.0.2'
上面这三个是我本地目前最新的
相关文章推荐
- java.lang.NoSuchMethodError: No static method getFont(Landroid/content/Context;ILandroid/util/Typed
- com.android.support:appcompat版本不一致遇到的BUG(java.lang.NoSuchMethodError: No static method getFont)
- 错误 java.lang.NoSuchMethodError: No static method getFont
- 关于Recyclerview使用时的一个错误java.lang.NoSuchMethodError: No static method getMatrix(Landroid/view/View;)
- java.lang.NoSuchMethodError: No static method getFont
- java.lang.NoSuchMethodError: No static method getFont
- 关于Recyclerview使用时的一个错误java.lang.NoSuchMethodError: No static method getMatrix(Landroid/view/View;)
- java.lang.NoSuchMethodError: No static method getFont
- java.lang.NoSuchMethodError: No static method getFont
- java.lang.NoSuchMethodError: No static method setLayoutDirection(Landroid/graphics/drawable/Drawable;I)V in class Landroid/support/v4/graphics/drawable/DrawableCompat
- java.lang.NoSuchMethodException: <init> [class android.content.Context, interface androidutil.Attri
- java.lang.NoSuchMethodError: No static method hasOnClickListeners(Landroid/view/View;)Z in class Lan
- 关于java.lang.NoSuchMethodException: <init> [class android.content.Context, interface android.util.Att
- java.lang.NoSuchMethodError: No virtual method getContext()
- Caused by: java.lang.NoSuchMethodException: <init> [class android.content.Context, interface android
- 自定义View:Caused by: java.lang.NoSuchMethodException: <init> [class android.content.Context,
- Caused by: java.lang.NoSuchMethodException: <init> [class android.content.Context, interface androi
- Caused by: java.lang.NoSuchMethodException: <init> [class android.content.Context, interface android
- Caused by: java.lang.NoSuchMethodException: <init> [class android.content.Context, interface android
- Caused by: java.lang.NoSuchMethodException: <init> [class android.content.Context, interface androi