What should be in my .gitignore for an Android Studio project?

后端 未结 30 3354
星月不相逢
星月不相逢 2020-11-22 04:23

What files should be in my .gitignore for an Android Studio project?

I\'ve seen several examples that all include .iml but IntelliJ docs sa

30条回答
  •  渐次进展
    2020-11-22 04:55

    .gitignore from AndroidRate library

    # Copyright 2017 - 2018 Vorlonsoft LLC
    #
    # Licensed under The MIT License (MIT)
    
    # Built application files
    *.ap_
    *.apk
    
    # Built library files
    *.aar
    *.jar
    
    # Built native files
    *.o
    *.so
    
    # Files for the Dalvik/Android Runtime (ART)
    *.dex
    *.odex
    
    # Java class files
    *.class
    
    # Generated files
    bin/
    gen/
    out/
    
    # Gradle files
    .gradle/
    build/
    
    # Local configuration file (sdk/ndk path, etc)
    local.properties
    
    # Windows thumbnail cache
    Thumbs.db
    
    # macOS
    .DS_Store/
    
    # Log Files
    *.log
    
    # Android Studio
    .navigation/
    captures/
    output.json
    
    # NDK
    .externalNativeBuild/
    obj/
    
    # IntelliJ
    ## User-specific stuff
    .idea/**/tasks.xml
    .idea/**/workspace.xml
    .idea/dictionaries
    ## Sensitive or high-churn files
    .idea/**/dataSources/
    .idea/**/dataSources.ids
    .idea/**/dataSources.local.xml
    .idea/**/dynamic.xml
    .idea/**/sqlDataSources.xml
    .idea/**/uiDesigner.xml
    ## Gradle
    .idea/**/gradle.xml
    .idea/**/libraries
    ## VCS
    .idea/vcs.xml
    ## Module files
    *.iml
    ## File-based project format
    *.iws
    

提交回复
热议问题