I'm trying to clone an Android project using Eclipse, the Android SDK, and the Mercurial plug-in. I can successfully clone it by doing this: File -> New -> Project -> Clone Existing Mercurial Repository
But the problems start when Eclipse does not seem to recognize that it is an Android project. I can then right-click on the project and: Android Tools -> Convert to Android Project but I don't get to select any build preferences and the source folder icon doesn't get identified as a package. I try to add a new package but Eclipse says the folder is not a Java source folder.
I feel like there is either something wrong with the repository, the way I am cloning it, or that Eclipse/Mercurial/Android SDK don't work well together.
Obviously, I'm a complete greenhorn at this and any help/patience is appreciated. Links to useful tutorials are welcome since none that I've found deal with this particular set of tools.
Here's what I do:
Use command line to clone the repository in a separate folder outside of the Eclipse workspace folder hierarchy.
hg clone https://existing/repository/path
In Eclipse, create a new Android project using the "Create project from existing source" option selecting the cloned folder.
The new project is now both an Android project with the Mercurial Team options.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With