JavaNoober / BackgroundLibrary

A framework for directly generating shape through Tags, no need to write shape.xml again(通过标签直接生成shape,无需再写shape.xml)
Apache License 2.0
3.86k stars 469 forks source link

新版本Android stuio(Electric Eel | 2022.1.1) 用了本库之后 xml布局文件不能预览 #154

Closed hanling0 closed 1 year ago

hanling0 commented 1 year ago

org.xmlpull.v1.XmlPullParserException: unterminated entity ref org.kxml2.io.KXmlParser.exception  at org.kxml2.io.KXmlParser.error  at org.kxml2.io.KXmlParser.pushEntity  at org.kxml2.io.KXmlParser.pushText  at org.kxml2.io.KXmlParser.nextImpl  at org.kxml2.io.KXmlParser.next  at com.android.layoutlib.bridge.android.BridgeXmlBlockParser.next(BridgeXmlBlockParser.java:305)   at com.android.layoutlib.bridge.impl.ResourceHelper.getInternalComplexColor(ResourceHelper.java:218)   at com.android.layoutlib.bridge.impl.ResourceHelper.getColorStateList(ResourceHelper.java:270)   at android.content.res.BridgeTypedArray.getColor(BridgeTypedArray.java:329)   at com.noober.background.drawable.SelectorDrawableCreator.setSelectorDrawable   ... (SelectorDrawableCreator.java:73)   at com.noober.background.drawable.SelectorDrawableCreator.create(SelectorDrawableCreator.java:41)   at com.noober.background.drawable.DrawableFactory.getSelectorDrawable(DrawableFactory.java:35)   at com.noober.background.BackgroundFactory.setViewBackground(BackgroundFactory.java:120)   at com.noober.background.BackgroundFactory.setViewBackground(BackgroundFactory.java:65)   at com.noober.background.view.BLTextView.init(BLTextView.java:25)   at com.noober.background.view.BLTextView.(BLTextView.java:16)   at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(NativeConstructorAccessorImpl.java:-2)   at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)   at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)   at java.lang.reflect.Constructor.newInstance(Constructor.java:490)   at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:965)   at android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:1127)   at android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:72)   at android.view.LayoutInflater.rInflate(LayoutInflater.java:1101)   at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1088)   at android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:1130)   at android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:72)   at android.view.LayoutInflater.rInflate(LayoutInflater.java:1101)   at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1088)   at android.view.LayoutInflater.inflate(LayoutInflater.java:686)   at android.view.LayoutInflater.inflate(LayoutInflater.java:505)

JavaNoober commented 1 year ago

Android Studio Electric Eel | 2022.1.1 Patch 1新增Layout Validation可以用来预览