Android Setup Guide: First-Time Subversion (SVN) Repository Tasks (part 3)
Posted: February 16, 2012 Filed under: NEZzen Leave a comment »First Time Android Project Setup and Commit for SVN Repository Trunk
Only one person in your team will have to create the “skeleton” of the Android project. They will then commit it to the SVN repository’s trunk. All the other members of the team will follow the next set of instructions in order to check-out (download) the skeleton to their computer.
- After following the previous set of instructions, you should see the “trunk” item in the “SVN Repositories” panel. It has a green up arrow as the icon to the left of it.
- Right click on the folder you are created the project in (“trunk”) and choose “Find/Check Out As…”
- The options you want are “Check out as a project configured using the New Project Wizard” and “Head revision”. Click “Finish” to complete this step.
- Select “Android > Android Project” in the next screen and continue on.
- Enter a project name and choose the option to “Create a new project in workspace”.
- Check the box to use “Google APIs” for platform 2.3.3 (or whatever version of Android you are targeting). Click on “Next” to proceed.
- Fill out the following page carefully! You namespace is probably “com.companyname.appname” or similar – you can make it whatever you’d like. Then click “Finish” to complete this step.
- A new project will be created in your “Package Explorer” panel!
- To upload this new project to the repository, right click on the project (not the SVN repo), and hover your mouse over “Team”. When the menu expands, click “Commit” and wait a little bit.
- Review the changes, enter a brief commit log, and click on “OK” – you’re done!
First Time Android Project Checkout from SVN Repository Trunk
After one member of your team has completed the steps in the previous section, you will need to download the skeleton project that they made and add it to your Eclipse workspace.
- After following the previous set of instructions, you should see the “trunk” item in the “SVN Repositories” panel. It has a green up arrow as the icon to the left of it.
- Right click on the folder your team leader created the project in (“trunk”) and choose “Find/Check Out As…”
- The options you want are “Check out as a project with the name specified” and “Head revision”. Click “Finish”.
- The name should already be filled in with your project’s name. Click “Finish” and wait a little bit.
- Switch over to the “Java” view by click in the >> icon in the top right of the window.
- If you notice a red error message in the console about the Android compiler compliance level not being correct, you will have to right click the newly checked out project (not the repo), mouse over “Android Tools”, and click on “Fix Project Properties” to resolve this issue.
- Congrats! You should now see your project’s source code in the “src/” folder!
End of Guide
This is the end of the series of guide posts for this topic on my blog! Now you will be able to begin working on your program’s code. If you have any suggestions or corrections for this series of tutorial posts, please feel free to let me know and I will update the text as necessary. If you have any questions I would suggest searching for an answer on Google. Most of the information in this tutorial can be found elsewhere online in more detail, should you need it.