[Solved] can not resolve method ‘setText(java.lang.String)’


Since you haven’t provided us with full code I cannot determine the correct answer but here are couple of possibilities.

  1. Set your command to the following textview.setText(“sometext”)
    You have to use “” when you are going to declare strings.

  2. Dolars is not a textview

  3. Is TextODolars a variable? If so, what kind? Maybe you have to use .toString to convert it

But please get into a habit of posting code for a clear answer

1

solved can not resolve method ‘setText(java.lang.String)’