To import the formatter, go to the preferences, section Java > Code Style > formatter, then click on import and choose development/ide/eclipse/android-formatting.xml To import the import order, to go into Java > Code Style > Organize Import, then click on import and choose development/ide/eclipse/android.importorder