Library projects in Eclipse missing after Github clone? - android

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.

Related

GitHub repo clone empty

I tried to clone a private repo from GitHub to Android Studio using "Check out Project from Version Control" The cloning works. However, after cloning, the Android directory is empty. I couldn't find any Java files in the Project directory either:
This is a known problem with the IDE.
How to fix it?
Close the project.
Delete the .idea folder
Open the studio again
Create new project from existing source - your project path
And thats it :-)

Libgdx project import build path error

I would just want to ask how to copy a libgdx project to another computer. I pushed the libgdx project at bitbucket but when I cloned it to another computer and import it with eclipse I am having lots of dependency/build path errors. Upon inspecting, the original project has multiple jars added on the build path from
/Users/me/.gradle/caches
. Maybe copying all of these jars to the other computer would solve the problem but that would be a tedious process. How can I properly fix these errors? The project was initially created by libgdx setup with Generates Eclipse Project Files checked. Thank you very much!
When you clone your repository to another computer, you must refresh the dependencies.
In eclipse this is done like this:
Select all your projects.
Right click one of them.
Do:
Gradle -> Refresh All.

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?

Cloning another user's github repository into Eclipse workspace

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.

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