Home > Enterprise >  Android Studio Cannot resolve symbol, method
Android Studio Cannot resolve symbol, method

Time:02-15

I am new to this, and when i started coding by watching youtube. I got those errors, Cannot resolve symbol and Cannot resolve methodenter image description here

CodePudding user response:

import android.widget.EditText;

CodePudding user response:

What happened in the IDE is that when you did not IMPORT a class (eg: EditText), the IDE will not recognise your UI element (EditText) as anything.

What you have to do is just IMPORT the (EditText) class:

Add this before your CLASS declaration:
import android.widget.EditText

Or

Move your cursor to EditText and then do Alt Enter

Since you said you are a beginner (for now), just know that for every UI element you'll have to do that

  • Related