Skip to content
This repository has been archived by the owner on Feb 8, 2022. It is now read-only.

LruCache not found on api < 12 #9

Open
labay11 opened this issue Feb 5, 2017 · 0 comments
Open

LruCache not found on api < 12 #9

labay11 opened this issue Feb 5, 2017 · 0 comments

Comments

@labay11
Copy link

labay11 commented Feb 5, 2017

Hi there, when I try to execute the app on a devide with api < 12 I get the following error, this is because you've set minSdk 10 although you are using in your project file PicassoPalette.java the class android.util.LruCache which was introduced in api 12. You should consider either changing the minSdk to 12 or using android.support.v4.util.LruCache inside the support-v4 library.

I wish you take this into account. Thank you.

E/AndroidRuntime: FATAL EXCEPTION: main java.lang.NoClassDefFoundError: android.util.LruCache at com.a.a.a.b.<init>(PicassoPalette.java:35) at com.a.a.a.b.a(PicassoPalette.java:75) at com.alm.popularmovies.f.onBindViewHolder(MoviesAdapter.java:1055) at android.support.v7.widget.RecyclerView$Adapter.onBindViewHolder(RecyclerView.java:6308) at android.support.v7.widget.RecyclerView$Adapter.bindViewHolder(RecyclerView.java:6341) at android.support.v7.widget.RecyclerView$Recycler.tryBindViewHolderByDeadline(RecyclerView.java:5287) at android.support.v7.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline(RecyclerView.java:5550) at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5392) at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5388) at android.support.v7.widget.bt.a(LinearLayoutManager.java:2149) at android.support.v7.widget.GridLayoutManager.layoutChunk(GridLayoutManager.java:556) at android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1496) at android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:593) at android.support.v7.widget.GridLayoutManager.onLayoutChildren(GridLayoutManager.java:170) at android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3535) at android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:3264) at android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:3796) at android.view.View.layout(View.java:7175) at android.widget.FrameLayout.onLayout(FrameLayout.java:338) at android.view.View.layout(View.java:7175) at android.widget.FrameLayout.onLayout(FrameLayout.java:338) at android.view.View.layout(View.java:7175) at android.support.v7.widget.ActionBarOverlayLayout.onLayout(ActionBarOverlayLayout.java:437) at android.view.View.layout(View.java:7175) at android.widget.FrameLayout.onLayout(FrameLayout.java:338) at android.view.View.layout(View.java:7175) at android.widget.FrameLayout.onLayout(FrameLayout.java:338) at android.view.View.layout(View.java:7175) at android.view.ViewRoot.performTraversals(ViewRoot.java:1146) at android.view.ViewRoot.handleMessage(ViewRoot.java:1865) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:130) at android.app.ActivityThread.main(ActivityThread.java:3687) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:507) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625) at dalvik.system.NativeStart.main(Native Method)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant