Error in Android projects (in Eclipse) without a reason
<p>I have a problem with the Android projects in Eclipse.</p>

<p>I am working on Mac OS Lion and when I went to continue an Android project it gives me an error on the project icon. Moreover when I went to see the error Eclipse does not gives me an error anywhere in code.</p>

<p>What can I do to solve this problem? Any suggestions? 
Thanks!</p>

<hr>

<p>After a lot of work I have this problem now:</p>

<p>Eclipse it gives me error on override methods of class preference activity. for example for the code below:</p>

<pre><code>@Override
public boolean onPreferenceClick(Preference preference) {

            // TODO Auto-generated method stub
            AlertDialog.Builder builder = new AlertDialog.Builder(view.getContext());

            builder.setNeutralButton("Cancel", new DialogInterface.OnClickListener() {
                @Override
                public void onClick(DialogInterface dialog, int which) {

                    // Show something if does not exit the app
                    dialog.dismiss();
                }
            });
}
</code></pre>

<p>I get the error: <em>The method onPreferenceClick(Preference) of type new Preference.OnPreferenceClickListener(){} must override a superclass method</em></p>

<p>This problem is only on Mac OS X Lion. I don't know where is the problem. All tools are installed.</p>

<p>On windows is just fine on the other hand.</p>

<p>Do you have any idea where is the problem now ?</p>
