Open arronvera opened 3 years ago
三方textview
问题同上:
Caused by: java.lang.ExceptionInInitializerError
at skin.support.content.res.SkinCompatUserThemeManager.get(SourceFile:124)
at skin.support.content.res.SkinCompatVectorResources.a(SourceFile:62)
at skin.support.content.res.SkinCompatVectorResources.getDrawableCompat(SourceFile:89)
at skin.support.widget.SkinCompatImageHelper.applySkin(SourceFile:57)
at skin.support.widget.SkinCompatImageHelper.loadFromAttributes(SourceFile:35)
at com.bilin.skin.compatview.SkinTintImageButton.
实现代码如下,catch也catch不住 public SkinTintImageButton(Context context, AttributeSet attrs, int defStyleAttr) { super(context, attrs, defStyleAttr); mBackgroundTintHelper = new SkinCompatBackgroundHelper(this); mBackgroundTintHelper.loadFromAttributes(attrs, defStyleAttr); mImageHelper = new SkinCompatImageHelper(this); try { mImageHelper.loadFromAttributes(attrs, defStyleAttr); } catch (Error e) { LogUtil.e("SkinTintImageButton", "Error" + e.getMessage()); } }
+1
+1
2
3
4
5
6
java:
7
android.content.res.AssetManager.getResourceIdentifier(AssetManager.java:796)
8
android.content.res.ResourcesImpl.getIdentifier(ResourcesImpl.java:329)
9
android.content.res.Resources.getIdentifier(Resources.java:2262)
10
skin.support.content.res.SkinCompatResources.getTargetResId(SkinCompatResources.java:121)
11
skin.support.content.res.SkinCompatVectorResources.getSkinDrawableCompat(SkinCompatVectorResources.java:79)
12
skin.support.content.res.SkinCompatVectorResources.getDrawableCompat(SkinCompatVectorResources.java:89)
13
skin.support.widget.SkinCompatBackgroundHelper.applySkin(SkinCompatBackgroundHelper.java:50)
14
skin.support.widget.SkinCompatBackgroundHelper.loadFromAttributes(SkinCompatBackgroundHelper.java:35)
15
skin.support.widget.SkinCompatLinearLayout.
我也遇到了同样的问题
楼主解决了不?
这问题 有人修复过吗,同样问题
判断了是否是进程进行初始化,还是会闪退,在启动页create的时候