ximsfei / Android-skin-support

Android-skin-support is an easy dynamic skin framework to use for Android, Only one line of code to integrate it. Android 换肤框架, 极低的学习成本, 极好的用户体验. "一行"代码就可以实现换肤, 你值得拥有!!!
MIT License
6.42k stars 1.08k forks source link

java.lang.NoSuchFieldError #412

Closed GXSZone closed 4 years ago

GXSZone commented 4 years ago

崩溃信息:

No static field abc_text_select_handle_left_mtrl_dark of type I in class Landroidx/appcompat/R$drawable; or its superclasses (declaration of 'androidx.appcompat.R$drawable' appears in /data/app/com.aa.bb-RxDsGCclYbWDy2onEiaiYQ==/base.apk!classes2.dex)

类名:SkinCompatDrawableManager.java

方法:

行数:108

类型:java.lang.NoSuchFieldError

时间:2020-10-08_19:40

设备名称:PCCM00

设备厂商:OPPO

系统版本:Android 10-29

CPU-ABI:arm64-v8a

versionCode:1

versionName:1.0

全部信息:

java.lang.NoSuchFieldError: No static field abc_text_select_handle_left_mtrl_dark of type I in class Landroidx/appcompat/R$drawable; or its superclasses (declaration of 'androidx.appcompat.R$drawable' appears in /data/app/com.aa.bb-RxDsGCclYbWDy2onEiaiYQ==/base.apk!classes2.dex)
    at skin.support.content.res.SkinCompatDrawableManager.<clinit>(SkinCompatDrawableManager.java:108)
    at skin.support.content.res.SkinCompatDrawableManager.get(SkinCompatDrawableManager.java:60)
    at skin.support.content.res.SkinCompatVectorResources.clear(SkinCompatVectorResources.java:30)
    at skin.support.content.res.SkinCompatResources.setupSkin(SkinCompatResources.java:76)
    at skin.support.load.SkinBuildInLoader.loadSkinInBackground(SkinBuildInLoader.java:14)
    at skin.support.SkinCompatManager$SkinLoadTask.doInBackground(SkinCompatManager.java:394)
    at skin.support.SkinCompatManager$SkinLoadTask.doInBackground(SkinCompatManager.java:364)
    at android.os.AsyncTask$3.call(AsyncTask.java:378)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
    at java.lang.Thread.run(Thread.java:919)
GXSZone commented 4 years ago
implementation 'androidx.appcompat:appcompat:1.3.0-alpha02' 换成1.2.0 就好了  或者改依赖
liusanhong commented 3 years ago

b

implementation 'androidx.appcompat:appcompat:1.3.0-alpha02' 换成1.2.0 就好了  或者改依赖

不行啊,还是有

xiaoxing1992 commented 3 years ago

b

implementation 'androidx.appcompat:appcompat:1.3.0-alpha02' 换成1.2.0 就好了  或者改依赖

不行啊,还是有

你的解决了吗 求方法

wtyn commented 2 years ago
implementation 'androidx.appcompat:appcompat:1.3.0-alpha02' 换成1.2.0 就好了  或者改依赖

的确改成这个就可以了。但感觉这个库已经不维护了,以后还是有问题