SalmonKiller
SalmonKiller

Reputation: 2203

Android - implementing Palette class

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

Answers (1)

stkent
stkent

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

Related Questions