java - Android Failed to instantiate one or more classes -


i have running project , xml files showing me error message 'android failed instantiate 1 or more classes'. program still works.
cleaned cache , used invalidate caches , restart.

here full message: following classes not instantated - android.support.v7.widget.appcompattextview

tip: use view.isineditmode() in custom view skip code or show sample data when shown in ide.

java.lang.nullpointerexception     @ android.content.res.resources_delegate.getvalue(resources_delegate.java:788)     @ android.content.res.resources.getvalue(resources.java:1286)     @ android.support.v4.content.res.resourcescompat.loadfont(resourcescompat.java:212)     @ android.support.v4.content.res.resourcescompat.getfont(resourcescompat.java:206)     @ android.support.v7.widget.tinttypedarray.getfont(tinttypedarray.java:119)     @ android.support.v7.widget.appcompattexthelper.updatetypefaceandstyle(appcompattexthelper.java:208)     @ android.support.v7.widget.appcompattexthelper.loadfromattributes(appcompattexthelper.java:152)     @ android.support.v7.widget.appcompattexthelperv17.loadfromattributes(appcompattexthelperv17.java:38)     @ android.support.v7.widget.appcompattextview.<init>(appcompattextview.java:81)     @ android.support.v7.widget.appcompattextview.<init>(appcompattextview.java:71)     @ sun.reflect.nativeconstructoraccessorimpl.newinstance0(native method)     @ sun.reflect.nativeconstructoraccessorimpl.newinstance(nativeconstructoraccessorimpl.java:62)     @ sun.reflect.delegatingconstructoraccessorimpl.newinstance(delegatingconstructoraccessorimpl.java:45)     @ java.lang.reflect.constructor.newinstance(constructor.java:423)     @ org.jetbrains.android.uipreview.viewloader.createnewinstance(viewloader.java:475)     @ org.jetbrains.android.uipreview.viewloader.loadclass(viewloader.java:250)     @ org.jetbrains.android.uipreview.viewloader.loadclass(viewloader.java:213)     @ com.android.tools.idea.rendering.layoutlibcallbackimpl.loadclass(layoutlibcallbackimpl.java:193)     @ android.view.bridgeinflater.loadcustomview(bridgeinflater.java:333)     @ android.view.bridgeinflater.oncreateview(bridgeinflater.java:152)     @ android.view.layoutinflater.oncreateview(layoutinflater.java:717)     @ android.view.layoutinflater.createviewfromtag(layoutinflater.java:785)     @ android.view.bridgeinflater.createviewfromtag(bridgeinflater.java:222)     @ android.view.layoutinflater.createviewfromtag(layoutinflater.java:727)     @ android.view.layoutinflater.rinflate_original(layoutinflater.java:858)     @ android.view.layoutinflater_delegate.rinflate(layoutinflater_delegate.java:70)     @ android.view.layoutinflater.rinflate(layoutinflater.java:834)     @ android.view.layoutinflater.inflate(layoutinflater.java:492)     @ com.android.layoutlib.bridge.bars.custombar.<init>(custombar.java:95)     @ com.android.layoutlib.bridge.bars.statusbar.<init>(statusbar.java:67)     @ com.android.layoutlib.bridge.impl.layout.createstatusbar(layout.java:224)     @ com.android.layoutlib.bridge.impl.layout.<init>(layout.java:146)     @ com.android.layoutlib.bridge.impl.rendersessionimpl.inflate(rendersessionimpl.java:301)     @ com.android.layoutlib.bridge.bridge.createsession(bridge.java:429)     @ com.android.ide.common.rendering.layoutlibrary.createsession(layoutlibrary.java:368)     @ com.android.tools.idea.rendering.rendertask$2.compute(rendertask.java:567)     @ com.android.tools.idea.rendering.rendertask$2.compute(rendertask.java:549)     @ com.intellij.openapi.application.impl.applicationimpl.runreadaction(applicationimpl.java:863)     @ com.android.tools.idea.rendering.rendertask.createrendersession(rendertask.java:549)     @ com.android.tools.idea.rendering.rendertask.lambda$inflate$1(rendertask.java:680)     @ java.util.concurrent.futuretask.run(futuretask.java:266)     @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1142)     @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:617)     @ java.lang.thread.run(thread.java:745) 

in styles.xml,

changing theme theme.appcompat.light.darkactionbar base.theme.appcompat.light.darkactionbar has worked me.


Comments

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -