# 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 filesbin/gen/
# Ignore gradle files.gradle/build/
# Local configuration file (sdk path, etc)local.properties
# Proguard folder generated by Eclipseproguard/
# Eclipse Metadata.metadata/
# Mac OS X clutter*.DS_Store
# Windows clutterThumbs.db
# Intellij IDEA (see https://intellij-support.jetbrains.com/entries/23393067).idea/workspace.xml.idea/tasks.xml.idea/datasources.xml.idea/dataSources.ids
我厌倦了不断看到有关Gradle在/.idea中创建或删除的各种library.xml文件的消息。当开发人员第一次签出项目时,build.gradle将在开发人员的本地运行,那么为什么这些XML文件需要版本控制呢?当开发人员使用Check out from Version Control创建项目时,Android Studio也会生成/.idea的其余部分,那么为什么该文件夹中的任何内容都需要版本控制呢?
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {repositories {mavenCentral()}dependencies {classpath 'com.android.tools.build:gradle:0.12.2'}}
allprojects {repositories {mavenCentral()}}
All files under .idea directory except workspace.xml and tasks.xml becausethey store specific user settingsAll the *.iml files that can be located in different module directories
# Built application files*.apk*.ap_
# Files for the ART/Dalvik VM*.dex
# Java class files*.class
# Generated filesbin/gen/out/
# Gradle files.gradle/build/
# Local configuration file (sdk path, etc)local.properties
# Proguard folder generated by Eclipseproguard/
# Log Files*.log
# Android Studio Navigation editor temp files.navigation/
# Android Studio captures foldercaptures/
# IntelliJ*.iml.idea/workspace.xml.idea/tasks.xml.idea/gradle.xml.idea/assetWizardSettings.xml.idea/dictionaries.idea/libraries.idea/caches
# Keystore files# Uncomment the following line if you do not want to check your keystore files in.#*.jks
# External native build folder generated in Android Studio 2.2 and later.externalNativeBuild
# Google Services (e.g. APIs or Firebase)google-services.json
# Freelinefreeline.pyfreeline/freeline_project_description.json
# fastlanefastlane/report.xmlfastlane/Preview.htmlfastlane/screenshotsfastlane/test_outputfastlane/readme.md
# Built application files*.apk*.ap_*.aab
# Files for the ART/Dalvik VM*.dex
# Generated filesbin/gen/out/app/release/
# Gradle files.gradle/build/
# Local configuration file (sdk path, etc)local.properties
# Log Files*.log
# Android Studio Navigation editor temp files.navigation/
# Android Studio captures foldercaptures/
# IntelliJ*.iml.idea/workspace.xml.idea/tasks.xml.idea/gradle.xml.idea/assetWizardSettings.xml.idea/dictionaries.idea/libraries.idea/caches
# Keystore files# Uncomment the following lines if you do not want to check your keystore files in.#*.jks#*.keystore
# External native build folder generated in Android Studio 2.2 and later.externalNativeBuild
# Freelinefreeline.pyfreeline/freeline_project_description.json
# fastlanefastlane/report.xmlfastlane/Preview.htmlfastlane/screenshotsfastlane/test_outputfastlane/readme.md
#NDK*.so