Error: The method onItemSelected(String) of type ItemListActivity must override a superclass method

It MAY BE happen if you new a project using the new Android SDK Revision 20: Eclipse complain with errors of:
- The method onItemSelected(String) of type ItemListActivity must override a superclass method
- The method onItemSelected(String) of type new ItemListFragment.Callbacks(){} must override a superclass method



Checking the updated System requirements of Android SDK, only JDK 6 is officially supported:



To fix it: correct Compiler compliance level to 1.6.

- Right click your project, select Properties.


-  Select Java Compiler tab, change Compiler compliance level to 1.6.


- Alternatively, you  can click Window -> Preferences, then select Java -> Compiler to change Compiler compliance level to 1.6 for the whole workspace.


Then clean and re-build. Now fixed with 0 errors.


thumbnail
Title: Error: The method onItemSelected(String) of type ItemListActivity must override a superclass method
Rating: 100% based on 99998 ratings. 10 user reviews.
Post by

Related articles :

0 comments:

Post a Comment

My Blog List

 
Copyright © 2015. About - Web Version - Mobile Version Sitemap - Contact - Privacy