Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: Cannot find symbol class view

Tags:

java

android

I'm trying to learn developing Android Apps and I'm following the Training on developer.android.com

I've run into quite a bit of a problem while trying to open a new activity when a user clicks a button. I followed the instructions precisely and still can't figure out the problem

I compiled the code and got an error:

Error:(39, 29) error: cannot find symbol class View

The code on line 39 is the following:

public void sendMessage (View view) {

I'm using Android Studio 0.5.2.

Thanks!

like image 740
user3646937 Avatar asked May 17 '14 06:05

user3646937


1 Answers

I just ran into this same issue; Sripathi's suggestion worked.

 import android.view.View;

worked like a charm. thanks.

like image 62
Dung Ta Avatar answered Oct 17 '22 14:10

Dung Ta