Android Question

Cannot resolve symbol "preference"

I am building an Android TV app and want to use


However, the Studio says "Cannot resolve symbol "preference" on my import string:


I have the leanback library dependency added in my build.gradle:

compile ''

The link to API reference:

Any hints and help is appreciated.


Answer Source

You are missing

compile ''

See here for more details

If that works, be sure to accept this answer.