Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android Build a Weather App (2015) Hooking Up the Model to the View Using Butter Knife for Views

I added butterknife library in build.gradle but I am not able to use it.

this I have added from github library for butterknife. compile 'com.jakewharton:butterknife:7.0.1'

I did synch gradle with project plus tried file option "invalidate caches and restart" and again synched it.

But it doesnt gives me suggestion for @Intectview plus doesnt let me allow ButterKnife.intect......! Shows red text on inject.

1 Answer

Jon Kussmann
PLUS
Jon Kussmann
Courses Plus Student 7,254 Points

Hi Niravkumar,

The newest version of ButterKnife uses @Bind instead of @InjectView. It also uses ButterKnife.bind() instead of ButterKnife.inject().

I hope this helps.

Thank you for this answer. The teamtreehouse community proves invaluable again!

Evans Mwendwa
Evans Mwendwa
4,359 Points

Would be nice to get this added in the teachers notes.