Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Jaffer Sadiq
467 Pointswhy do i get this error?
i am doing the first course and i get this error. ```public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
//declare our view variables and assign them the views from the layout file.
TextView answerLabel = (TextView) findViewById(R.id.view1);
Button getAnswerButton = (Button) findViewById(R.id.button1); ```
1 Answer

Frank Cameron-Wilson
8,814 PointsWhat error are you getting exactly??
Jaffer Sadiq
467 PointsJaffer Sadiq
467 Pointsthere is a yellow underline coming under answerLabel & getAnswerButton
Jaffer Sadiq
467 PointsJaffer Sadiq
467 Pointsthere is a yellow underline coming under answerLabel & getAnswerButton