Reputation: 2203
I am trying to implement the Palette class in my android app, however Android Studio doesn't recognize Palette
as a class. I tried import android.support.v7.graphics;
, but AS doesn't recognize the package either. What else do I have to do?
Thanks for the help in advance.
Upvotes: 2
Views: 2724
Reputation: 20128
You need to add the dependency com.android.support:palette-v7:21.0.+
to your build.gradle
file.
See https://developer.android.com/tools/support-library/features.html#v7-palette for reference.
Upvotes: 5