title: java.lang.VerifyError: Verifier rejected class on Lollipop when using release APK
body: <p>I get this error when I install my release APK on a <code>5.x</code> device. The error does not occur when I push the same code from Android Studio, or if I run it on a <code>4.x</code> device.</p>
  
  <pre><code>java.lang.VerifyError: Verifier rejected class com.myapp.android.ui.activity.MainActivity$$ViewInjector due to bad method void com.myapp.android.ui.activity.MainActivity$$ViewInjector.reset(com.myapp.android.ui.activity.MainActivity) (declaration of 'com.myapp.android.ui.activity.MainActivity$$ViewInjector' appears in /data/app/com.myapp.android-2/base.apk)
         at java.lang.Class.classForName(Class.java)
         at java.lang.Class.forName(Class.java:308)
         at java.lang.Class.forName(Class.java:272)
         at butterknife.ButterKnife.findInjectorForClass(ButterKnife.java:298)
         at butterknife.ButterKnife.inject(ButterKnife.java:271)
         at butterknife.ButterKnife.inject(ButterKnife.java:184)
         at com.myapp.android.ui.activity.MyDrawerActivity.onCreate(MyDrawerActivity.java:31)
  </code></pre>
  
  <p>I inject my Toolbar and a custom NavigationDrawer in the class.</p>
  
  <pre><code>@InjectView(R.id.toolbar) Toolbar mToolbar;
  @InjectView(R.id.nav_drawer) MyNavigationDrawer mNavigationDrawer;
  </code></pre>
  
  <p>Line 31:</p>
  
  <pre><code>ButterKnife.inject(this);
  </code></pre>
  
  <p>Is there something that would be different with the Butterknife codegen when using <code>gradle assembleRelease</code>? I am not using ProGuard at all.</p>
  
  <p>Here are my other Android build settings:</p>
  
  <pre><code># Android SDK settings
  ANDROID_BUILD_MIN_SDK_VERSION=14
  ANDROID_BUILD_TARGET_SDK_VERSION=21
  ANDROID_BUILD_SDK_VERSION=21
  ANDROID_BUILD_TOOLS_VERSION=21.1.2
  </code></pre>
  
  <p><strong>Logcat</strong></p>
  
  <pre><code>I/art     (21354): Verification error in void com.myapp.android.ui.activity.MainActivity$$ViewInjector.inject(butterknife.ButterKnife$Finder, com.myapp.android.ui.activity.MainActivity, java.lang.Object)
  I/art     (21354): void com.myapp.android.ui.activity.MainActivity$$ViewInjector.inject(butterknife.ButterKnife$Finder, com.myapp.android.ui.activity.MainActivity, java.lang.Object) failed to verify: register v4 has type Reference: com.myapp.android.ui.activity.MainActivity but expected Reference: com.myapp.android.ui.activity.LoggedInNavActivitya.lang.Object): [0x0]
  I/art     (21354): Verification error in void com.myapp.android.ui.activity.MainActivity$$ViewInjector.reset(com.myapp.android.ui.activity.MainActivity)
  I/art     (21354): void com.myapp.android.ui.activity.MainActivity$$ViewInjector.reset(com.myapp.android.ui.activity.MainActivity) failed to verify: register v1 has type Reference: com.myapp.android.ui.activity.MainActivity but expected Reference: com.myapp.android.ui.activity.LoggedInNavActivity
  E/art     (21354): Verification failed on class com.myapp.android.ui.activity.MainActivity$$ViewInjector in /data/app/com.myapp.android-1/base.apk because: Verifier rejected class com.myapp.android.ui.activity.MainActivity$$ViewInjector due to bad method void com.myapp.android.ui.activity.MainActivity$$ViewInjector.reset(com.myapp.android.ui.activity.MainActivity)
  </code></pre>