1

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?

asked Jul 18, 2012 at 12:50
0

2 Answers 2

2

Clean and Build is your friend here! Especially if you're recently added new resources etc.

answered Jul 18, 2012 at 12:54
Sign up to request clarification or add additional context in comments.

1 Comment

This is always the first thing I do if eclipse starts misbehaving :)
0

Edit: Please update to ADT 20.0.1. The bug has been fixed.


This is a bug in Android Lint. It "holds" Java related errors from the JDT, if you hit the save button at a time where a Java syntax error is present.

You can hit the "Remove all warnings" button in the Android Lint view to get rid of those wrong warnings. Lint will re-create the correct warnings during the next run.

answered Jul 18, 2012 at 21:04

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.