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?
Related
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.
I have created phonegap project.And successfully, it is running on AVD. But, when I tried to impport that project inside my eclipse workspace....nothing happened.
Here is the screenshot appering & no action taking place after I clicking finish.
You should checked copy projects in to workspace.
And make sure your project is properly built into android platforms.
Your final import will be like this on eclipse.
Hope this will help you !!
don't click on copy projects in to workspace option ,
and don't try to import that project inside my eclipse workspace drive .
Check copy projects in to workspace and try again
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.
I created an Android project from terminal because when I create it inside Eclipse there's a problem with the R.java file, which is not created. I think I bypassed the problem creating the project from terminal. I want to know if there's a way to import it in Eclipse and work with it as a normal Android project created inside the IDE. Thank you!
In Eclipse to File -> import
select android--> existing code into workspace
find the root folder of that project, select
then check the project
and follow the steps.
It will be imported to Eclipse.
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