If you’ve imported a project into Eclipse, say from Git for example, then it might not be set as an Android project. There doesn’t seem to be an easy way to convert the project to an Android project through Eclipse itself, but you can change the nature of the project by editing the project XML file.
- Close the project in Eclipse
- Open .project in a text editor
- Assuming <natures></natures> is empty, add the following natures
- Re-open the project
The first nature lets it know it’s a Java project, the second nature let’s it know it’s an Android project, which of course needs to be a Java project.
You should now have all the Android and Java project options available to you.
[…] Andrew Kirkpatrick: Convert non-Java Eclipse ADT project to Android project […]
Works & Thanks!