setOnClickListener can not be resolved

+2 BK emperor · February 8, 2015
So i reached video 19 of the tutorial and now i'm stuck with this issue
error: cannot resolve symbol 'setOnClickListener'

/images/forum/upload/2015-02-08/a7f1dfb5bb127e52125d2710f4036dc6.PNG

Post a Reply

Replies

Oldest  Newest  Rating
+2 Branislav Lazic · February 8, 2015
Abutton.setOnClickListener( new Button.OnClickListener {....}; );


You are missing ().
  • 1

Java / Android Development

107,096 followers
About

Very popular language used to create desktop applications, website applets, and Android apps.

Links
Moderators
Bucky Roberts Administrator