Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do i checkout an android project from an SVN repository

I have an android project and I have added it to an SVN repository. These are the directories/files I have added

Directories : res, src, lib,

Files : AndroidManiFest.xml, project.properties, proguard.cfg, and 2 launch files

However, when i do the following, I'm not able to create the file as an android project

  1. Import project by checking out from SVN (this is a project A)
  2. Using the create new project in eclipse to create the new project - steps are : Create New Projects -> Android Project from Existing Source Code

Are thee some files that I have not committed or am I doing something wrong when I'm creating the new project?

like image 443
Arvind Sridharan Avatar asked Nov 16 '25 20:11

Arvind Sridharan


2 Answers

I spent a lot of time trying to import an Android project from a web based SVN provider into Eclipse (Juno).

Seeing how hard it was for me to find out the correct steps, I leave here my suggestion with screenshots. Enjoy!

  • You must have SVN already installed and configured. No previous project is needed in Eclipse You must have SVN already installed and configured. No previous project is needed in Eclipse

  • I already had the connection to the provider correctly configured due to previous attempts. YMYV here. I already had the connection to the provider correctly configured due to previous attempts. YMYV here.

  • I use SVNKit 1.7 because it will work just fine over a proxy here at work. I use SVNKit 1.7 because it will work just fine over a proxy here at work.

  • Here is the most important step: make sure the Find projects in the children option is selected Here is the most important step: make sure the Find projects in the children option is selected.

  • Choose Checkout as a project Choose checkout as a project

  • Choose whatever workspace you need Choose whatever workspace you need

  • And voilá, the project is ready to roll! And *voilá*, the project is ready to roll!

I added descriptions into the images, for your viewing pleasure. Hope it saves someone a lot of time as it did to me after figuring out the correct steps.

like image 161
Henrique de Sousa Avatar answered Nov 19 '25 10:11

Henrique de Sousa


In Eclipse try:

Right click in project view.

-> Import

-> Enter Android

-> Select "Existing Android Code Into Workspace"

-> Select your checked out svn folder.

finish. :)

like image 26
Fabian Avatar answered Nov 19 '25 09:11

Fabian



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!