title: Adding external Android and Java projects to Android projects in Android Studio
body: <p>So, we have been migrating from Eclipse to the new Android Studio IDE (knowing that it's an early release version). Everything was splendid until yesterday when we updated to 0.1.1, which removed the Project Structure UI interface, replacing it with a message telling us to use gradle.  </p>
  
  <p>So we began reading documentation, SO posts and watched the <a href="http://www.youtube.com/watch?v=LCJAgPkpmR0" rel="nofollow">Google I/O presentation</a>. We still don't understand how this works.</p>
  
  <p>We've read <a href="http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Dependencies-Android-Libraries-and-Multi-project-setup" rel="nofollow">this user guide</a> and, like I said, countless SO posts. But can't get this to work.</p>
  
  <p>So we have 2 projects. Both of them are Android projects. Both use external projects. One of them uses the Facebook Android SDK and the other uses a custom, straight up java project. The java project is continually being updated.<br>
  The java project was created in Eclipse and has that folder structure.<br>
  Both of the Android Projects were created fresh in Android Studio. How do we do this?</p>
  
  <p>Do the library projects need their own build.gradle files?<br>
  Do the library projects need to be placed in the same folder as our Android Projects?</p>
  
  <p>And depending on the answer to those questions, how do the build.gradle and settings.gradle files need to look?</p>
  
  <p><strong>[EDIT]</strong><br>
  For clarification:</p>
  
  <p>Facts:<br>
  <em>Android Project A needs to use the Facebook SDK external library</em><br>
  <em>Android Project B needs to use an external java project I created in Eclipse</em><br>
  <em>Projects A and B were both created in Android Studio</em></p>
  
  <p>Questions:<br>
  ● What needs to go into Project A build.gradle file?<br>
  ● Where does the Facebook SDK need to be?<br>
  ● Does the Facebook SDK need a build.gradle file? If so, what does it need to say?</p>
  
  <p>● What needs to go into Project B build.gradle file?<br>
  ● Where does the java project need to go?<br>
  ● Does this java project need a build.gradle file? If so, what does it need to say?</p>
  
  <p>● Does the Facebook SDK or the java project need a settings.gradle file?</p>