守候你守候我
在我正常的安卓系统上.gitignore,在阅读了IntelliJ IDEA网站上的文档和StackOverflow上的文章之后,我构建了以下文件:# built application files
*.apk
*.ap_
# files for the dex VM
*.dex
# Java class files
*.class
# built native files (uncomment if you build your own)
# *.o
# *.so
# generated files
bin/
gen/
# Ignore gradle files
.gradle/
build/
# Local configuration file (sdk path, etc)
local.properties
# Proguard folder generated by Eclipse
proguard/
# Eclipse Metadata
.metadata/
# Mac OS X clutter
*.DS_Store
# Windows clutter
Thumbs.db
# Intellij IDEA (see https://intellij-support.jetbrains.com/entries/23393067)
.idea/workspace.xml
.idea/tasks.xml
.idea/datasources.xml
.idea/dataSources.ids还请注意,正如所指出的,生成本机文件部分在使用AndroidNDK构建自己的本机代码时非常有用。另一方面,如果使用包含这些文件的第三方库,则可能希望从.gitignore中删除这些行(*.o和*.so)。