Applying AlertDialog Styles

I am attempting to customize the AlertDialogs in my app. When it comes to applying the style, my application crashes I am only applying a background color, like so…