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
- Java報錯:java.lang.NoSuchMethodError: io.netty.util.internal.ObjectUtil.checkPositiveJavaErrorNettyObject
- Non-static method Redis::hSet () cannot be called staticallyRedis
- java.lang.NullPointerException: Attempt to invoke virtual method 'int android.content.Intent.getI...JavaNullExceptionAndroidIntent
- Nginx R31 doc-09-Serving Static Content 靜態內容Nginx
- Spring載入配置檔案propertoies中util:properties和context:property-placeholder區別SpringContext
- UTIL
- Go:context.ContextGoContext
- 解決java.lang.NoSuchMethodError錯誤JavaError
- Numerical Results of RhDYas CG method and RhLHas CG method
- 50、abstract的method是否可同時是static,是否可同時是native,是否可同時是synchronized?synchronized
- Kernel Method
- Swizzling Method
- Greedy Method
- SCSS @contentCSS
- CSS contentCSS
- static
- ContextContext
- go 上下文:context.ContextGoContext
- java.util.PropertiesJava
- java.util.ConcurrentModificationExceptionJavaException
- jdbc Util 工具類JDBC
- Two Pointer Method
- Content Security Policy
- CSS content character ACSS
- 《Lua-in-ConTeXt》02:ConTeXt 計算機Context計算機
- static用法
- android.content.res.XmlResourceParser android.content.pm.ProviderInfo.loadXmlMetAndroidXMLIDE
- 聊聊ContextContext
- 理解ContextContext
- Go ContextGoContext
- context包Context
- IllegalArgumentException: Invalid character found in method name. HTTP method names must be tokensExceptionHTTP
- java.util.concurrent.RejectedExecutionExceptionJavaException
- java.util.Date類Java
- Java操作某方法時報錯:java.lang.NoSuchMethodErrorJavaError