Cannot resolve method 'setText' (solved)

#1

I’m in the second part trying to add more questions to GeoQuiz. However, android studio doesn’t seem to recognize “setText” method. Here’s what I have:

mQuestionTextView = (TextView) findViewById(R.id.question_text_view);
    int question = mQuestionBank[mCurrentIndex].getTextResId();
    mQuestionTextView.setText(question);

Android Studio complains about the “setText” on the third line.

Here’s the TextView code from .xml file:

<TextView
    android:id="@+id/question_text_view"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:padding="24dp" />

What am I doing wrong?

Edit: Stupid mistake. For some reason I had written
private String mQuestionTextView;
instead of
private TextView mQuestionTextView;