• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

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

Ronicus

Lurker
Jul 17, 2017
8
1
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
 
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.
 
Upvote 0
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
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones