Layouts of PreferenceScreen's cannot be in "res/layout" folder, they have must be in "res/xml"
Fix "Avoid hardcoding the debug mode; leaving it out allows debug and release builds to automatically assign one"
Fix code after moving preferences.xml