Importing the Official Android Code Style to Android Studio/IntelliJ

  1. Download AndroidStyle.xml from the .

  2. Save it to
    Beta : ~/Library/Preferences/AndroidStudioBeta/codestyles.

    Release : ~/Library/Preferences/AndroidStudio/codestyles.

  3. Restart Android Studio

  4. Navigate to Android Studio > Preferences

  5. Navigate to Code Style > Java

  6. From the Scheme drop-down, select the name of the imported code style

  7. Click OK