exkoria
exkoria

Reputation: 1206

Import android project in ADT Eclipse from github

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:

  1. In "Package explorer" right-click and select "Import"

  2. Import project from Git.

  3. Enter uri: https://github.com/moagrius/MapViewDemo

  4. Just import master.

  5. When cloning is done the following dialog shows up:

enter image description here

  1. When choosing "Import existing projects" the below dialog shows:

enter image description here

Why are no projects found to import!? How can I import the projects into eclipse?

Thanks for help!

Upvotes: 8

Views: 11460

Answers (3)

shihabkv
shihabkv

Reputation: 41

7 Easy steps to import Github android projects in to ADT

  1. create repository in Github .

  2. select the HTTP clone url .

  3. Clone the project in to local system using clone command.

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

  1. Select the project and click right button

  2. Click Team and press Commit , write you comments , click push and commit..

Upvotes: 2

Engr Muhammad Zohaib
Engr Muhammad Zohaib

Reputation: 121

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)

Press Finish

Upvotes: 2

user908627
user908627

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

Related Questions