Updated to Android Studio 3.0 Please share missing items in comments. A late answer but this alternative answer was not right for us ... So, here's our gitignore file: #built application files *.apk *.ap_ *.aab # files for the dex VM *.dex # Java class files *.class # generated files bin/ gen/ # Local configuration file (sdk path, etc) local.properties # Windows thumbnail db Thumbs.db # OSX files