dshihtzu
dshihtzu

Reputation: 21

Eclipse Android project

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 :)

Upvotes: 2

Views: 588

Answers (4)

RussWill
RussWill

Reputation: 201

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

Upvotes: 1

DonGru
DonGru

Reputation: 13710

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

Upvotes: 1

NPike
NPike

Reputation: 13254

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..

Upvotes: 1

bcat
bcat

Reputation: 8941

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.

Upvotes: 1

Related Questions