After eclipse update couple days ago, I start getting funny errors, like this:
package a.b.c;
import android.app.ListActivity;
import android.os.Bundle;
public class MyActivity extends ListActivity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
}
}
Description Resource Path Location Type
Syntax error on token "}", delete this token MyActivity.java /src/a/b/c line 11 Android Lint Problem
Syntax error on token "}", delete this token MyActivity.java /src/a/b/c line 11 Android Lint Problem
Syntax error, insert "}" to complete ClassBody MyActivity.java /src/a/b/c line 10 Android Lint Problem
Sometimes closing/repopening project helps.
Sometimes closing/repopening eclipse helps.
I got so tired of these errors.
What is the right way to fix it.
If always happens when eclipse start messing up with CR/LF in *.java file.
I set Eclipse preferences from Windows->Preferences. Navigate to General -> Workspace and then for the "New text file line delimiter" to Other "Windows" but it doesn't help.
Still getting same error.