java.lang.NoSuchMethodError: No static method getFont(Landroid/content/Context;ILandroid/util/Typ...
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.m.testgoogle-2/base.apk:classes2.dex)
at android.support.v7.widget.TintTypedArray.getFont(TintTypedArray.java:119)
Android Studio升級3.0後 新建專案
開始:
compileSdkVersion 26
targetSdkVersion 26
compile 'com.android.support:support-v4:26.+'
compile 'com.android.support:appcompat-v7:26.+'
compile 'com.android.support:recyclerview-v7:26.+'
compile 'com.android.support:design:26.+'
修改為
compileSdkVersion 27
targetSdkVersion 27
compile 'com.android.support:support-v4:27.+'
compile 'com.android.support:appcompat-v7:27.+'
compile 'com.android.support:recyclerview-v7:27.+'
compile 'com.android.support:design:27.+'
就解決了
依賴包衝突 clean rebuild之後也解決了,完全不知道原理。
相關文章
- java.lang.NoSuchMethodError:Nostatic method init(Landroid/content/Context;Ljava/lang/String;Ljava/laJavaErrorAndroidContext
- Non-static method 'save(java.long.Object)' cannot be referenced from a static context.JavaObjectContext
- No virtual method setOutputFile Ljava/io/File V in class Landroid/media/MediaRecorderJavaAndroid
- Non-static method Redis::hSet () cannot be called staticallyRedis
- Java報錯:java.lang.NoSuchMethodError: io.netty.util.internal.ObjectUtil.checkPositiveJavaErrorNettyObject
- JNI開發:Class android.content.Context could not be foundAndroidContext
- java.lang.NullPointerException: Attempt to invoke virtual method 'int android.content.Intent.getI...JavaNullExceptionAndroidIntent
- Nginx R31 doc-09-Serving Static Content 靜態內容Nginx
- 18、 Caused by: java.lang.NoSuchMethodException: [class android.content.Context..AttributeSetJavaExceptionAndroidContext
- Spring載入配置檔案propertoies中util:properties和context:property-placeholder區別SpringContext
- content = content==null? content="":content; 三目運算子用法例項Null
- java -- java.lang.NoSuchMethodError的問題JavaError
- 解決java.lang.NoSuchMethodError錯誤JavaError
- static
- 50、abstract的method是否可同時是static,是否可同時是native,是否可同時是synchronized?synchronized
- java.util.PropertiesJava
- jdbc Util 工具類JDBC
- Numerical Results of RhDYas CG method and RhLHas CG method
- CSS contentCSS
- SCSS @contentCSS
- java static 與 static靜態程式碼塊Java
- Java操作某方法時報錯:java.lang.NoSuchMethodErrorJavaError
- ContextContext
- java.util.Date類Java
- Java_util_package(轉)JavaPackage
- java_util_test(轉)Java
- C語言中的 static變數、static函式C語言變數函式
- go 上下文:context.ContextGoContext
- php static dynamicPHP
- C#staticC#
- Java之StaticJava
- static變數變數
- 解析static!(轉)
- 理解static(轉)
- Interface中加Static
- Content Security Policy
- ISO in CSS contentCSS
- java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.(I)VJavaErrorObjectWebASM