{"id":233,"date":"2012-02-23T11:34:55","date_gmt":"2012-02-23T16:34:55","guid":{"rendered":"http:\/\/digitallibraryworld.com\/?p=233"},"modified":"2012-02-23T11:36:34","modified_gmt":"2012-02-23T16:36:34","slug":"annoying-override-problem-when-importing-android-project-to-new-workplace","status":"publish","type":"post","link":"https:\/\/heisbudi.com\/?p=233","title":{"rendered":"Annoying @Override problem when importing android project to new workplace"},"content":{"rendered":"<p>This is a big mystery to me. When working on Android Project with Eclipse, after a period of time, the Eclipse workspace would become corrupt for whatever reason. It will then ask me to create a new workspace. Fine! I did that, and re-import all my project. I need to do it one by one. \u00a0It&#8217;s super annoying. So, I did that too.<\/p>\n<p>Now eclipse is reporting error on ALL overridden method.<\/p>\n<p>&#8220;The method onClick(DialogInterface, int) of type new DialogInterface.OnClickListener(){} must override a superclass method.<\/p>\n<p>1 quick fix available: Remove &#8216;@Override&#8217; annotation.<\/p>\n<p>If you remove the annotation, yes it would work again. Super annoying.<\/p>\n<p>I researched on Google, and it seems like this is a compiler version issue. But all the solution I tried doesn&#8217;t work. I finally got it to work after some time.<\/p>\n<p>These are several things I did to get it to work:<!--more--><\/p>\n<ul>\n<li>Change compiler version: Click on Project menu item &gt; Properties &gt; \u00a0Java Compiler to version 1.6. If it&#8217;s already at 1.6, change it to 1.5, anc click apply. It will recompile everything. Change the compiler back to 1.6, and apply it again.<\/li>\n<li>right click on your project &gt; Android Tools &gt; Fix Project Properties<\/li>\n<li>Click on Project menu item &gt; uncheck Build Automatically. Click Project again, and Clean. Check Build Automatically again.<\/li>\n<li>Pull your hair, your co workers&#8217; hair, go out of your office, find som e guy with at least some hair, and pull his too.<\/li>\n<\/ul>\n<p>I guess I&#8217;m spoiled with Visual Studio.<\/p>\n<p>PS: Option 4 above is NOT recommended. Particularly if it involves hair that isn&#8217;t yours!!<\/p>\n<div data-counters='1' data-style='square' data-size='regular' data-url='https:\/\/heisbudi.com\/?p=233' data-title='Annoying @Override problem when importing android project to new workplace' class='linksalpha_container linksalpha_app_3'><a href='\/\/www.linksalpha.com\/share?network='facebook' class='linksalpha_icon_facebook'><\/a><a href='\/\/www.linksalpha.com\/share?network='twitter' class='linksalpha_icon_twitter'><\/a><a href='\/\/www.linksalpha.com\/share?network='googleplus' class='linksalpha_icon_googleplus'><\/a><a href='\/\/www.linksalpha.com\/share?network='mail' class='linksalpha_icon_mail'><\/a><\/div><div data-position='' data-url='https:\/\/heisbudi.com\/?p=233' data-title='Annoying @Override problem when importing android project to new workplace' class='linksalpha_container linksalpha_app_7'><a href='\/\/www.linksalpha.com\/share?network='facebook' class='linksalpha_icon_facebook'><\/a><a href='\/\/www.linksalpha.com\/share?network='twitter' class='linksalpha_icon_twitter'><\/a><a href='\/\/www.linksalpha.com\/share?network='googleplus' class='linksalpha_icon_googleplus'><\/a><a href='\/\/www.linksalpha.com\/share?network='mail' class='linksalpha_icon_mail'><\/a><\/div>","protected":false},"excerpt":{"rendered":"<p>This is a big mystery to me. When working on Android Project with Eclipse, after a period of time, the Eclipse workspace would become corrupt for whatever reason. It will then ask me to create a new workspace. Fine! I did that, and re-import all my project. I need to do it one by one. <a class=\"read-more\" href=\"https:\/\/heisbudi.com\/?p=233\">[&hellip;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[20],"tags":[],"_links":{"self":[{"href":"https:\/\/heisbudi.com\/index.php?rest_route=\/wp\/v2\/posts\/233"}],"collection":[{"href":"https:\/\/heisbudi.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/heisbudi.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/heisbudi.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/heisbudi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=233"}],"version-history":[{"count":6,"href":"https:\/\/heisbudi.com\/index.php?rest_route=\/wp\/v2\/posts\/233\/revisions"}],"predecessor-version":[{"id":239,"href":"https:\/\/heisbudi.com\/index.php?rest_route=\/wp\/v2\/posts\/233\/revisions\/239"}],"wp:attachment":[{"href":"https:\/\/heisbudi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=233"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/heisbudi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=233"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/heisbudi.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=233"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}