I am trying to create a button on the mainActivity. Once clicked, it takes a user to a second view. However I keep getting an error saying that
onclick listener cannot be resolved to a type
and
the method set onclicklistener in the type view is not applicaible for the type of arguments
Below is the screenshot of the code:

Does anyone have any ideas?
This is because your source file is still missing the required imports for the classes you want to use.
You can always auto-add missing imports using Eclipse:
Ctrl+Shift+O
That way you don’t have to guess which package you need to import.