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

Fernando Zegarra
PLUS
Fernando Zegarra
Courses Plus Student 2,596 Points

Using Butter Knife for View Objective 2

It is a litle dummy but I coulnd achieve the second objective for activity

"Using Butter Knife for View"

public class MovieActivity extends Activity {

9) @InjectView(R.id.textView) TextView mTitleLabel; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_movie);

  ButterKnife.inject(this);

    // The rest of the code is omitted for brevity :)
}

}

it says: ./MovieActivity.java:9: error: cannot find symbol @InjectView(R.id.textView) TextView mTitleLabel; ^ symbol: variable textView location: class id

2 Answers

Fernando Zegarra
PLUS
Fernando Zegarra
Courses Plus Student 2,596 Points

I could see what i was doing wrong, just not knowing the right name of the variable,

It was "movieTitle" instead of "textView"

should I erase this post ?
i think is
unreadable