Skip to content
This repository has been archived by the owner on Jan 9, 2020. It is now read-only.

NoSuchMethodError. No ButterKnife.bind(Activity) method #75

Open
anotherdev opened this issue Jun 11, 2016 · 1 comment
Open

NoSuchMethodError. No ButterKnife.bind(Activity) method #75

anotherdev opened this issue Jun 11, 2016 · 1 comment

Comments

@anotherdev
Copy link

Hi,

I got weird crash when extending RosieAppCompatActivity. http://crashes.to/s/129c15fd43c

Fatal Exception: java.lang.NoSuchMethodError: No static method bind(Landroid/app/Activity;)V in class Lbutterknife/ButterKnife; or its super classes (declaration of 'butterknife.ButterKnife' appears in /data/app/com.anotherdev.photos500.debug-1/base.apk)
       at com.karumi.rosie.view.RosieAppCompatActivity.onCreate(RosieAppCompatActivity.java:50)

Except from my dependencies:

compile 'com.jakewharton:butterknife:8.0.1'
apt 'com.jakewharton:butterknife-compiler:8.0.1'
compile 'com.karumi.rosie:rosie:2.1.0'
@anotherdev anotherdev changed the title NoSuchMethodError. No ButterKnife.bind(Activity) NoSuchMethodError. No ButterKnife.bind(Activity) method Jun 11, 2016
@pedrovgs
Copy link
Contributor

pedrovgs commented Jun 13, 2016

Hi @anotherdev you don't need to add your own version of butterknife. The one already added to the project is the butterknife version 7.0.1. Remove your butterknife dependency from your project and use the one obtained from the rosie aar.

In the future we are going to publish a release removing the usage of butternife and renderers from Rosie.

Is this the answer to your question?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants