title: Which files shouldn't be checked in into version control in Android Studio
body: <p>I have used Eclipse IDE with the Android SDK Tools in the past, and now I'm migrating to Android Studio. Android Studio generates a lot of files, like <code>build.gradle</code>. Which files/folders should I add to the <code>.gitignore</code> file?</p>
  
  <p>EDIT: A lot of questions here give different answers. So I've tried to combine them, using various sources.</p>
  
  <pre><code># built application files
  *.apk
  *.ap_
  
  # files for the dex VM
  *.dex
  
  # Java class files
  *.class
  
  # generated files
  bin/
  gen/
  
  # Local configuration file (sdk path, etc)
  local.properties
  
  # Eclipse project files
  .classpath
  .project
  
  # Proguard folder generated by Eclipse
  proguard/
  
  # Intellij project files
  *.iws
  .idea/workspace.xml
  .idea/tasks.xml
  </code></pre>