参考文档: 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上文件上传至tomcat服务器源码
  2. Android 存储文件数据与读出文件数据
  3. 可以下载Android 源代码的repo源文件
  4. Android 下载服务器上的文件
  5. android webview file标签点击弹出选择文件或拍照菜单
  6. android 从assets和res中读取文件
  7. Android Bluetooth 文件接收路径修改方法
  8. Android文件图片上传的详细讲解(三)---模式回调类
  9. android官方技术文档翻译——Android Lint

随机推荐

  1. Android系统移植与调试之------->如何修
  2. Android(安卓)Watchdog 机制
  3. 使用Intent启动常用的应用与服务
  4. Android中如何加入busybox
  5. Android(安卓)数据序列化总结
  6. 一个css效果的Android实现
  7. Android Studio Monitors详解
  8. 浅谈Android 的事件分发机制
  9. Android之尺寸getDimension、getDimensio
  10. Android内存泄漏:谨慎使用getSystemServic