不应在Android Studio中将哪些文件签入到版本控制中

Fal*_*onC 26 git android intellij-idea gitignore android-studio

我过去使用Eclipse IDE和Android SDK Tools,现在我正在迁移到Android Studio.Android Studio会生成很多文件,例如build.gradle.我应该将哪些文件/文件夹添加到.gitignore文件中?

编辑:这里的很多问题给出了不同的答案.所以我尝试使用各种来源将它们组合在一起.

# 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
Run Code Online (Sandbox Code Playgroud)