So having used one of the default templates in android studio I added a couple of imports and hit the error "unresolved reference" on preference and android.