title: How do I setup my Git repositories for Android development in Eclipse?
body: <p>I need some help with properly versioning my Android project with Git/Eclipse.<br>
  I have no problem setting this up with a single Android project.</p>
  
  <p>However, I am trying to figure out the proper and correct way to set this up, if I add one or more third party Android libraries to my main project (e.g. Facebook SDK).</p>
  
  <p>So currently I am using <code>git-submodules</code> to accomplish this, and here's my directory structure:</p>
  
  <pre><code>/project/android-main.git
     +--- /project/android-main/facebook-sdk
  </code></pre>
  
  <p>I added <code>facebook-sdk</code> as a git-submodule within my <code>android-main</code> project.<br>
  In Eclipse workspace's <code>android-main</code> project, I am seeing the subfolder '<code>facebook-sdk</code>'. </p>
  
  <p>Then here comes the <strong>kludge</strong>:<br>
  <strong>I have to import 'Existing project' from <code>/project/android-main/facebook-sdk</code> as a new project, so that I can reference this project as a library from my <code>android-main</code> project.</strong></p>
  
  <p>In the end, <strong>Eclipse workspace has three references to '<code>facebook-sdk</code>'</strong>: </p>
  
  <ol>
  <li>The project itself in the workspace. </li>
  <li>because I added it as a <code>git-submodule</code>, it showed up as a folder in <code>android-main</code> project. </li>
  <li>Another folder '<code>facebook_sdk_src</code>' is created by the Android SDK plugin in <code>android-main</code> project.</li>
  </ol>
  
  <p>This seems to clutter the workspace and the main project, if I add more submodules.<br>
  Am I doing it right?<br>
  Is there a better way to use Android Libraries as a submodule in Eclipse?</p>