在Android项目开发过程中,使用Github进行版本控制时,需要用到.gitignore文件来设置忽略文件。
可以在这个网站生成.gitignore文件:https://www.gitignore.io/(Create useful .gitignore files for your project)
以下是一个完整的Android项目的.gitignore文件的设置:
# built application files
*.apk
*.ap_
# files for the dex VM
*.dex
# Java class files
*.class
# generated files
bin/
gen/
doc/
.settings/
# Gradle files
.gradle/
build/
# Local configuration file (sdk path, etc)
local.properties
# Proguard folder generated by Eclipse
proguard/
# Log Files
*.log
# Eclipse project files
.classpath
.project
*.metadata
*.settings
# OS X files
.DS_Store
# Android Studio Navigation editor temp files
.navigation/
# Android Studio captures folder
captures/
# Android Studio
.idea
*.iml
*.ipr
*.iws
out/
# Keystore files
*.jks
### Android Patch ###
gen-external-apklibs
# svn
*.svn*
网友评论