Monday, September 28, 2015

[Android][Resolved] Cannot resolve symbol button in android

Error "Cannot resolve symbol button" means you need to import the android.widget.Button class, Simple Put that statement under your package statement:

import android.widget.Button;




Or you can  press "Option+Return" (or Alt+Enter) to let Android Studio do that for you.

Reference:
Android Programming: The Big Nerd Ranch Guide By Bill Phillips, Chris Stewart

No comments :

Post a Comment