2

I have a problem I can't seem to get around. I've created a project in Eclipse (I recreated it from another project that I thought was corrupted). There are no visible errors in any of the files, including the .xml files. However, the project root [project name] itself has an error (red 'x') and so I can't run it.

On a side note, in the default properties file the line: target=android-4 is underlined in red with the note that 'android' is not spelled correctly. I have not altered this file since it was generated.

Any clues? Target is 1.6, sdk 4. And I'm new at this :)

asked Aug 10, 2010 at 2:14
1
  • Which version of eclipse are you using? Commented Aug 13, 2010 at 13:02

4 Answers 4

1

You may have already tried this unsuccessfully, but if not, you might want to try the Android Tools> Fix Project Properties action from the context menu of the project root.

answered Aug 10, 2010 at 2:16
Sign up to request clarification or add additional context in comments.

Comments

1

Eclipse also thinks android-4 is misspelled in my default.properties, so I doubt that is the cause of your build problem.

Does the Problems view describe any issues? (Window->Show View->Problems)

You could also try cleaning the project in eclipse. Project->Clean..

answered Aug 10, 2010 at 2:30

Comments

1

if the error message you get is

The project cannot be built until the build path errors are resolved.

this might help:

  1. Open the Project -> Properties
  2. Select Java Build Path -> Libraries
  3. Add any new library (to be deleted later) -> OK
  4. Wait for the workspace to refresh or force a refresh
  5. The error should go away
  6. Remove the dummy library
answered Aug 10, 2010 at 10:16

Comments

1

You can stop the spelling error by adding that word to a user dictionary, but a spelling error wouldn't prevent a run.

answered Jun 9, 2011 at 6:20

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.