Apps Issues with registerlink.setOnClickListener(new View.OnClickListener(){

Ronicus

Lurker
I am getting an error in android developer from this piece of code and cant figure out how to fix it i was following direction from a youtube tutorial

I have pasted the code here https://pastebin.com/iCGCQ1Ur

here is the youtube tutorial




jQw5qF
 
D

Deleted User

Guest
Mate, can you just type in the line. The compiler is getting really confused because you have not completed the statement. It sees that you declare an anonymous class instance as a parameter to a method, but you have not given the closing ';' character. Until it sees that it can make no sense of the entire block of code starting at line 40.
 

Ronicus

Lurker
Thread starter
Mate, can you just type in the line. The compiler is getting really confused because you have not completed the statement. It sees that you declare an anonymous class instance as a parameter to a method, but you have not given the closing ';' character. Until it sees that it can make no sense of the entire block of code starting at line 40.

I hate to be such a pain but I did that and im still left like this i just took this screenshot

https://ibb.co/cX31VF
 
D

Deleted User

Guest
Yes I see, you've typed "OnClick", and it should be "onClick".
Java is very picky and that includes case sensitivity.
 
Top