26

过去我使用 Eclipse IDE 和 Android SDK 工具,现在我正在迁移到 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
4

0 回答 0