Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Method overrides

I am in the process of switching my android development environment from my Mac to a new Ubuntu 11.04 system. Everything builds correctly with no errors on the mac, but after checking into and out of github I get an error on all of the @override onClick code complaining that I should remove the @Override. Does this make sense?

Here is error: The method onClick(View) of type new View.OnClickListener(){} must override a superclass method

I get a very similar error on the run method of a Runnable as well.

like image 371
Bryan Kemp Avatar asked Dec 01 '25 14:12

Bryan Kemp


1 Answers

The 1.5 JDK doesn't support @Override on interfaces. Use the 1.6 JDK.

like image 77
EboMike Avatar answered Dec 03 '25 04:12

EboMike



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!