I’m trying to import an android project from github into ADT Eclipse but it doesn’t find any projects in the repository when I clone it. The repo is clearly an android application project (from looking at the source) but no project is found to import. My steps are as follows:
In “Package explorer” right-click and select “Import”
Import project from Git.
Enter uri: https://github.com/moagrius/MapViewDemo
Just import master.
When cloning is done the following dialog shows up:
- When choosing “Import existing projects” the below dialog shows:
Why are no projects found to import!? How can I import the projects into eclipse?
Thanks for help!
The eclipse project files (.project and .classpath) are not part of the github repository so you can’t just import it into Eclipse.
Easiest way to fix that is probably to create a new Android project yourself and then copy the files from the github repo into it.
Instead of Selecting the “import existing Projects”, just Choose ‘Android Project from Existing Code’.
- For the ‘root directory’ click on ‘browse’ and select the place where you imported your project. (that master one and maybe someother)
7 Easy steps to import Github android projects in to ADT
create repository in Github .
select the HTTP clone url .
Clone the project in to local system using clone command.
import the project from the cloned path in to adt.
5.Select the imported project and click right button.
6.Click Team->share project.
For Commiting the changes
Select the project and click right button
Click Team and press Commit , write you comments , click push and commit..