See at the top?
import android.R;//Don't use android.R here; use a fully qualified name for each usage instead - this one only comes up *sometimes...
You should probably heed what that comment says. ;) Remove the import for android.R
, and it will use your project's R
file instead, which is where activity_login
is.