Skip to content
Android Studio plug-in for generating ButterKnife injections from selected layout XML.
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
img added animated gif of new on click option Jan 23, 2016
resources/icons Navigation between @OnClick and @InjectView added. Apr 23, 2015
src/com/avast/android/butterknifezelezny Fix wrong generation of Unbinder in Fragment (#131) Apr 16, 2017
test-app Update test-app Apr 16, 2017
.gitignore added extra option to create buterknife onclick methods against views Dec 22, 2015
LICENSE.txt Avast rebranding Feb 9, 2015 Update README Mar 22, 2017
code-formatting-config.xml Avast rebranding Feb 9, 2015


Simple plug-in for Android Studio/IDEA that allows one-click creation of Butterknife view injections.

How to install

  • in Android Studio: go to Preferences → Plugins → Browse repositories and search for ButterKnife Zelezny


  • download it and install via Preferences → Plugins → Install plugin from disk

How to use it

  1. Make sure you have latest Butterknife lib on your classpath
  2. Right click on usage of desired layout reference (e.g. R.layout.main in your Activity or Fragment), then Generate and Generate ButterKnife Injections
  3. Pick injections you want, you also have an option to create ViewHolder for adapters.
  4. Click Confirm and enjoy injections in your code with no work!


Pull requests are welcomed!

Common issue: The plugin is not working after I updated to new Android Studio

  • AS promts you to update plugins after update, you need to update them before using
  • Make sure you have Butterknife on your classpath
  • Make sure that your cursor is placed on a layout ID in a class having one of these types: Activity, Fragment, custom View or Adapter

Why 'Zelezny'?

Jan Železný is a famous Czech javelin thrower, Olympic champion and world record holder. With Zelezny's javelin, your butter knife will be much sharper!

See our other Czech personalities who help with #AndroidDev.

You can’t perform that action at this time.