Eclipse is driving me crazy today and comes up with nonsense errors like this one here:
Multiple markers at this line
- Syntax error on token ";", delete this
token
- Syntax error, insert ";" to complete
Statement
This is my code:
View dialogView = (View) findViewById(R.layout.dialog);
imgMan = new NovelImageManager();
this.viewMan = new ViewManager(dialogView, this.imgMan);<--- Error happens here.
I have weird problems in other Projects like this one:
@Override
protected void onResume() {
// TODO Auto-generated method stub
super.onResume();
loadData();
if (adView != null) {
adView.loadAd(new AdRequest());
} else {
setupAds();
}
}
causes the following error:
Multiple markers at this line
- Syntax error on token "void", @
expected
- overrides
android.app.Activity.onResume
The codes worked in the past, so I have no idea why eclipse is acting like that.
I know eclipse can be a pain sometimes, but this doesn’t make sense.
Any Idea what this could cause?
Clean and Build is your friend here! Especially if you’re recently added new resources etc.