Karumi / Rosie

Rosie is an Android framework to create applications following the principles of Clean Architecture.
Other
1.82k stars 157 forks source link

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

Open anotherdev opened 8 years ago

anotherdev commented 8 years ago

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'
pedrovgs commented 8 years ago

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?