Cloning another user's github repository into Eclipse workspace - android

I cloned an Android project from another user's github repository into my workspace folder. However, the Package Explorer in Eclipse cannot find it.
Through Eclipse, I tried importing the project into the workspace:
Import->Android->Existing Android Code into Workspace
Unfortunately, Eclipse does not see it as a project. I cannot import it.
How do I import a cloned Android repository into the Eclipse workspace?

try to import the project as a import->android->Existing Android Code into Workspace

I've never cloned directly to my workspace, issue could be that it want let you import it since it's already existing in the workspace. Try cloning to another location, maybe your My Docs folder then import it from there into your workspace. Be sure to delete the existing one that resides in your workspace first.
If you want, try using a git gui such as: http://nathanj.github.io/gitguide/tour.html.
This is helpful for those that aren't familiar with how to clone repos, not to mention its easy to use.

Related

Library projects in Eclipse missing after Github clone?

I cloned an existing git repository to my new PC.But after cloning i opened the repository folder in Windows explorer.Everything seems fine.But when i opened the same repository in eclipse,my library files seems to be missing,eventhough it is there in explorer.I tried restarting eclipse.But that didn't solve my problem.Please help...
You have to import your libraries to eclipse workspace one by one. When importing make sure that checkbox "Copy projects into workspace" is NOT checked.

how to share an android project with sourcetree and eclipse

I'm having a lot of problems with sharing a android project using sourcetree and eclipse.
I have tried the following:
- First importing the git from sourcetree and afterwards importing this in eclipse
- Creating empty project in eclipse and then try to import to it throught git/sourcetree.
It seems like no matter how I try to do it, it doesn't do it right. Some of the attempts, I have duplicated projects (which is created by eclipse twice, I dont know why)
Anyway, can anyone give an explanation on how to import a project from git so that I can see the changes in eclipse and push/pull/commit in the source tree?
Any help will be greatly appreciated.
Just clone your project with sourcetree on your Desktop (e.g) then add your project to Eclipse
Right click on the Package Explorer -> Import -> in Android -> "Existing Android Code Into Workspace" -> Select your folder project then click Finish.
You can also copy the project to your workspace by selecting the checkbox.
I zip the project folder.
I then extract it on another computer and import the project in Eclipse again...
Easy, isn't it?

Not able to import git android project in Eclipse

I tried several times to import this git repos into my eclipse and run it as android application, but no success.
Can someone please suggest me how to import it in correct manner.
Please try these things:
Check whether is a same mane project existing in your eclipse work-space?
Restart eclipse and then try the same
Import project as existing android code not as existing project
Steps : Import-> Existing android code into workspace -> Also mark copy into workspace-> Done
If there is not visible option of copy into workspace then probably there is already similar name project into workspace. First delete that and try the same.
Try to Clone in Desktop or Download Zip.
Then from Eclipse, Import > Existing projects into Workspace.
Hope it work.

How to import an Android Projects with git into workspace using egit?

In my projects I use some Android Libraries that are hosted on github, for example, facebook android sdk. Until now I downloaded the .zip with the library and added it to my workspace. This made keeping up to date libraries were a tedious job.
I want to use the option "Import > Git" in eclipse to import the Android Projects. And later use "Team > Pull" to obtain the latest versions of these projects. Is that possible? How?
My two principal problems are:
The android project there is not in the root of the repository, and
there is not .project file.
Install Mylyn and the Mylyn Github connector into Eclipse using the update manager or the marketplace client. Afterwards you can use Import -> Git -> From Github and only need to give it the repository name of the github project. That will clone the repository, so you have the files locally on your system (but not yet known as normal projects in the Eclipse workspace).
Independent of using the connector or any other method to clone the github repository, afterwards you need to import the cloned code into the workspace, so that Eclipse knows about it and can manage it as normal Java/Android/whatever projects. This can best be done by opening the git perspective, expanding the repository node and using the context menu "Import projects" on the "working directory" node of the repository. For projects without a .project file, you will want to use the import as new project option.

Importing Android Project

We have a SVN set up across many developers. i am trying to import the project into Eclipse and i am getting the following error
http://variable3.com/files/screenshots/2011-02-22_1255.png
You might want to change your workspace and then import the file into eclipse? You can do this by going to File > Switch Workspace.
Here's a good way to directly link SVN and eclipse
http://www.ibm.com/developerworks/opensource/library/os-ecl-subversion/
Essentially, it shows you how to install subclipse and checkout projects directly into your workspace. It might help you avoid these issues in the future.
There is a solution:
-right click on Project Explorer
-Import...
-General->Existings project into workspace
-Browse your project
-Set checkbox "Copy projects into workspace"
-Finish

Categories

Resources