android gitignore配置
时间: 2023-09-06 08:07:26 浏览: 120
Android项目在使用Git进行版本控制时,可以添加.gitignore文件来忽略不需要版本控制的文件和文件夹。下面是一个示例的Android项目的.gitignore配置:
```
# Built application files
*.apk
*.ap_
# Files for the Dalvik VM
*.dex
# Java class files
*.class
# Generated files
bin/
gen/
# Gradle files
.gradle/
build/
# Local configuration file (sdk path, etc)
local.properties
# Proguard folder generated by Android Studio
proguard/
# Log files
*.log
# Android Studio navigation files
.navigation/
# Android Studio captures folder
captures/
# Intellij
*.iml
.idea/workspace.xml
.idea/tasks.xml
.idea/.name
# Keystore files
*.jks
# CMake build output
cmake-build-*/
# Native build output
build/intermediates/
# NDK build output
build/*/CMakeFiles/
build/*/cmake/
# Android Studio 4.1+ serialized cache file
.idea/caches/
.idea/modules.xml
# External native build folder generated in Android Studio 2.2 and later
.externalNativeBuild
# Google Services (e.g. API key files)
google-services.json
# Firebase (e.g. Google-services.json)
**/google-services.json
# Crashlytics configuations
crashlytics.properties
# Fabric properties file
fabric.properties
# Don't ignore Gradle wrapper jar file to be committed!
!gradle/wrapper/gradle-wrapper.jar
# Ignore all log files and folders except one log file
logs/**
!logs/important.log
# Ignore lint cache files
lint-results.xml
lint/
阅读全文