Where can I find checkstyle config for Android Coding Style?-ThrowExceptions

Exception or error:

There are Coding Conventions for Android.
They include some stuff like naming conventions that can be checked using checkstyle.

I’ve found some config for checkstyle: http://ksoichiro.blogspot.com/2011/05/android-checkstyle.html

But I want to ask if there is some more complete config for checkstyle. Maybe Google provide some official checkstyle config?

How to solve:

Here you can find some that implement http://source.android.com/source/code-style.html
although none of them is official.


There is Android Check plugin (https://github.com/noveogroup/android-check).

It has two predefined Checkstyle configurations you can use:


Here is the checkstyle configuration used for Picasso by Square folks:

Here is Google’s Java Style Checkstyle Coverage:


CheckStyle for Android:

  • CheckStyle.
  • PMD.
  • Findbugs.

To add a dependency to gradle: Gradle Plugin for Android

More info on the Blog


Here you are:


I have also gone through their source (GrepCode is good) to look at their styling. You could create a custom Eclipse formatter based on these rules.


Very sorry did not see your link above. I am unaware of anything like this. Sorry I could not be of more help.

Leave a Reply

Your email address will not be published. Required fields are marked *