参考文档: http://softwaredevgeek.blogspot.com/2013/11/setting-up-android-checkstyle-in.html



步骤:

1.https://github.com/android/platform_development/blob/master/ide/intellij/codestyles/AndroidStyle.xml

2.创建文件AndroidStyle.xml.1中的内容复制到文件中,并将AndroidStyle.xml复制到

~/.AndroidStudio/config/codestyles/

3.Settings(or Preferences in Mac OS X) > Code Style > Java, 选择AndroidStyle,同时CodeStyle > XML , 选择AndroidStyle.

4.重启androidstudio, 执行菜单-->InspectCode.


更多参考文档:

http://www.thinksaas.cn/group/topic/349857/


http://www.cnblogs.com/liugang/archive/2010/10/26/1860903.html


http://www.cnblogs.com/qianxudetianxia/archive/2012/01/01/2309102.html


gradle 配置checkStyle:

http://blog.csdn.net/forlong401/article/details/42077013

http://gradle.org/docs/current/dsl/org.gradle.api.plugins.quality.Checkstyle.html






更多相关文章

  1. Android(安卓)NDK 配置与打包
  2. Android(安卓)怎样使用已存在的Database
  3. android官方技术文档翻译——Android(安卓)Lint
  4. Android获取声音长度
  5. Android复制粘贴
  6. android官方技术文档翻译——工具属性
  7. Android(安卓)XML Shape使用入门
  8. Android官方入门文档[13]暂停和恢复一个Activity活动
  9. Android2.2添加Ethernet 框架支持(二)

随机推荐

  1. Android(安卓)Studio基础学习(入门五)——
  2. Android动态设置android:drawableLeft|Ri
  3. android AlertDialog中EditText无法显示
  4. 使用Android(安卓)Studio遇到的一些常见
  5. android中涉及的字体修改
  6. Handler与Android进程管理
  7. Android(安卓)开发日常积累
  8. Android中的TextView
  9. ubuntu下android源代码以及内核的获取
  10. android View setText NotFoundException