---
title: "Android Studio 一些插件"
author: "notebook"
date: "2015-09-29T10:54:31Z"
tags: []
categories: ["移动开发"]
slug: "android-studio"
draft: false
lastmod: "2015-09-29T11:03:49Z"
id: 2246688
url: "https://notebook.iteye.com/blog/2246688"
---

为了更好的开发，使用一些开源和插件是必须的。收集了一下插件。

参考：[http://www.zhihu.com/question/28026027](http://www.zhihu.com/question/28026027)，[http://linroid.com/2014/03/11/2014-03-11-android-studio-plugin-collection/](http://linroid.com/2014/03/11/2014-03-11-android-studio-plugin-collection/)

常用：

1.parcelable 代码补全：[android-parcelable-intellij-plugin](https://github.com/mcharmas/android-parcelable-intellij-plugin)

2.根据指定的XML文件快速生成butterknife注入代码：[android-butterknife-zelezny](https://github.com/avast/android-butterknife-zelezny)

3.Android Studio Prettify：findViewById 生成插件

4.Codota:搜索代码

5.GsonFormat:把json数据往粘贴板一贴，自动生成Bean有没有，显著提高生成力。

6.根据资源自动生成相应的selector，免得对selector文件复制粘贴了：[android-selector-chapek](https://github.com/inmite/android-selector-chapek)

其他：

7.material-design-icon资源生成器：[android-material-design-icon-generator-plugin](https://github.com/konifar/android-material-design-icon-generator-plugin)

 icon资源都是官方提供：[google/material-design-icons · GitHub](https://github.com/google/material-design-icons)

8.otto事件导航工具：[otto-intellij-plugin](https://github.com/square/otto-intellij-plugin)

9.移除Android中无用资源：[lint-cleaner-plugin](https://github.com/marcoRS/lint-cleaner-plugin)

10.方法数计算，对于较大应用避免方法爆棚很有用：[dexcount-gradle-plugin](https://github.com/KeepSafe/dexcount-gradle-plugin)

11. Robolectric测试辅助工具：[robolectric-gradle-plugin](https://github.com/robolectric/robolectric-gradle-plugin)