Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by rudiw
, 1 year ago
Attribute '?attr/colorPrimary' not found. Are you using the right theme?
via Stack Overflow by LittleFunny
, 1 year ago
Attribute '?attr/selectableItemBackgroundBorderless' not found. Are you using the right theme?
via Stack Overflow by Fuad
, 1 year ago
Attribute '?attr/colorAccent' not found. Are you using the right theme?
via Stack Overflow by MANISH PATHAK
, 1 year ago
Attribute '?attr/colorControlActivated' not found. Are you using the right theme?
via GitHub by SteveCampos
, 2 years ago
Color value '?attr/colorAccent' must start with #
java.lang.NumberFormatException: Attribute '?attr/colorPrimary' not found. Are you using the right theme?	at com.android.layoutlib.bridge.impl.ResourceHelper.getColor(ResourceHelper.java:83)	at com.android.layoutlib.bridge.impl.ResourceHelper.getInternalComplexColor(ResourceHelper.java:216)	at com.android.layoutlib.bridge.impl.ResourceHelper.getColorStateList(ResourceHelper.java:238)	at android.content.res.BridgeTypedArray.getColor(BridgeTypedArray.java:293)	at android.widget.EdgeEffect.(EdgeEffect.java:122)	at android.support.v4.widget.EdgeEffectCompatIcs.newEdgeEffect(EdgeEffectCompatIcs.java:30)	at android.support.v4.widget.EdgeEffectCompat$EdgeEffectIcsImpl.newEdgeEffect(EdgeEffectCompat.java:109)	at android.support.v4.widget.EdgeEffectCompat.(EdgeEffectCompat.java:169)	at com.daimajia.slider.library.Tricks.ViewPagerEx.initViewPager(ViewPagerEx.java:380)	at com.daimajia.slider.library.Tricks.ViewPagerEx.(ViewPagerEx.java:365)	at com.daimajia.slider.library.Tricks.InfiniteViewPager.(InfiniteViewPager.java:19)	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)	at org.jetbrains.android.uipreview.ViewLoader.createNewInstance(ViewLoader.java:465)	at org.jetbrains.android.uipreview.ViewLoader.loadClass(ViewLoader.java:172)	at org.jetbrains.android.uipreview.ViewLoader.loadView(ViewLoader.java:105)	at com.android.tools.idea.rendering.LayoutlibCallbackImpl.loadView(LayoutlibCallbackImpl.java:186)	at android.view.BridgeInflater.loadCustomView(BridgeInflater.java:334)	at android.view.BridgeInflater.loadCustomView(BridgeInflater.java:345)	at android.view.BridgeInflater.createViewFromTag(BridgeInflater.java:245)	at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:727)	at android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:858)	at android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:70)	at android.view.LayoutInflater.rInflate(LayoutInflater.java:834)	at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821)	at android.view.LayoutInflater.inflate(LayoutInflater.java:518)	at android.view.LayoutInflater.inflate(LayoutInflater.java:426)	at com.daimajia.slider.library.SliderLayout.(SliderLayout.java:172)	at com.daimajia.slider.library.SliderLayout.(SliderLayout.java:166)	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)	at org.jetbrains.android.uipreview.ViewLoader.createNewInstance(ViewLoader.java:465)	at org.jetbrains.android.uipreview.ViewLoader.loadClass(ViewLoader.java:172)	at org.jetbrains.android.uipreview.ViewLoader.loadView(ViewLoader.java:105)	at com.android.tools.idea.rendering.LayoutlibCallbackImpl.loadView(LayoutlibCallbackImpl.java:186)	at android.view.BridgeInflater.loadCustomView(BridgeInflater.java:334)	at android.view.BridgeInflater.loadCustomView(BridgeInflater.java:345)	at android.view.BridgeInflater.createViewFromTag(BridgeInflater.java:245)	at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:727)	at android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:858)	at android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:70)	at android.view.LayoutInflater.rInflate(LayoutInflater.java:834)	at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821)	at android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:861)	at android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:70)	at android.view.LayoutInflater.rInflate(LayoutInflater.java:834)	at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821)	at android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:861)	at android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:70)	at android.view.LayoutInflater.rInflate(LayoutInflater.java:834)	at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821)	at android.view.LayoutInflater.inflate(LayoutInflater.java:518)	at android.view.LayoutInflater.inflate(LayoutInflater.java:397)	at com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:324)	at com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:429)	at com.android.ide.common.rendering.LayoutLibrary.createSession(LayoutLibrary.java:389)	at com.android.tools.idea.rendering.RenderTask$2.compute(RenderTask.java:548)	at com.android.tools.idea.rendering.RenderTask$2.compute(RenderTask.java:533)	at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:966)	at com.android.tools.idea.rendering.RenderTask.createRenderSession(RenderTask.java:533)	at com.android.tools.idea.rendering.RenderTask.lambda$inflate$72(RenderTask.java:659)	at java.util.concurrent.FutureTask.run(FutureTask.java:266)	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)	at java.lang.Thread.run(Thread.java:745)