Reputation: 1206
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:
Why are no projects found to import!? How can I import the projects into eclipse?
Thanks for help!
Upvotes: 8
Views: 11460
Reputation: 41
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.
7.Click Finish.
==========================
For Commiting the changes
Select the project and click right button
Click Team and press Commit , write you comments , click push and commit..
Upvotes: 2
Reputation: 121
Instead of Selecting the "import existing Projects", just Choose 'Android Project from Existing Code'.
Press Finish
Upvotes: 2
Reputation:
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.
Upvotes: 10