java.lang.NoSuchMethodError: No static method getFont(Landroid/content/Context;ILandroid/util/TypedV

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.(AppCompatTextView.java:81)
                                                                                   at android.support.v7.widget.AppCompatTextView.(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'
上面这三个是我本地目前最新的
 
 

你可能感兴趣的:(Android问题及解决)