我正在使用设计支持库,我的目标API是上一个V. 28,但没有显示样式。
Setting id 1 on newly created ClassLoader
Trying to load class android.support.design.widget.CoordinatorLayout
Trying to load class android.support.design.widget.AppBarLayout
Trying to load class android.support.design.widget.CollapsingToolbarLayout
Trying to load class at.markushi.ui.CircleButton
Trying to load class at.markushi.ui.CircleButton
Trying to load class at.markushi.ui.CircleButton
Trying to load class android.support.v7.widget.Toolbar
Trying to load class com.liaoinstan.springview.widget.SpringView
Trying to load class android.support.v4.widget.NestedScrollView
Failed to process message Load
mono.android.DesignerException: android.content.res.Resources$NotFoundException
at mono.android.DesignerException.fromThrowable(DesignerException.java:54)
at mono.android.DesignerSession.checkRenderResultForError(DesignerSession.java:215)
at mono.android.DesignerSession.load(DesignerSession.java:302)
at mono.android.DesignerSession.processMessage(DesignerSession.java:665)
at mono.android.MessageListener.executeMessage(MessageListener.java:88)
at mono.android.MessageListener$Runner.run(MessageListener.java:44)
at java.lang.Thread.run(Thread.java:748)
Caused by: android.content.res.Resources$NotFoundException: Could not find color resource matching value 0x7F0D002E (resolved name: button_material_light) in current configuration. Or the resolved value was not of type layout as expected.
at android.content.res.Resources_Delegate.throwException(Resources_Delegate.java:1117)
at android.content.res.Resources_Delegate.throwException(Resources_Delegate.java:1093)
at android.content.res.Resources_Delegate.getLayout(Resources_Delegate.java:497)
at android.content.res.Resources.getLayout(Resources.java:1155)
at android.view.LayoutInflater.inflate(LayoutInflater.java:421)
at com.liaoinstan.springview.widget.SpringView.n_onFinishInflate(Native Method)
at com.liaoinstan.springview.widget.SpringView.onFinishInflate(SpringView.java:68)
at android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:876)
at android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:72)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:837)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)
at android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:866)
at android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:72)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:837)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)
at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
at android.view.LayoutInflater.inflate(LayoutInflater.java:394)
at com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:327)
at com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:386)
at com.android.tools.idea.layoutlib.LayoutLibrary.createSession(LayoutLibrary.java:270)
at mono.android.DesignerSession.load(DesignerSession.java:289)
... 4 more
如何解决此错误(Visual Studio 2019)?