I have updated android studio from 3.0.0 to 3.3.2. Everytime I build project files like .idea/caches/build_file_checksums.ser and .idea/caches/gradle_models.ser get added to git. This files are already present in .gitignore.This is my Project level .gitignore file
*.iml
.gradle
/local.properties
/.idea/workspace.xml
/.idea/libraries
/.idea/tasks.xml
/.idea/misc.xml
/.idea/modules.xml
/.idea/vcs.xml
.DS_Store
/build
/captures
/.idea/caches/build_file_checksums.ser
/.idea/caches/gradle_models.ser
.externalNativeBuild
What changes need to be done in project to get rid of this ?
Please change the .gitignore file as follows. You are telling it to find the files in the
rootlocation.With below configuration, it will look in the project directory. This should resolve the issue.You will have to delete the files from the git cache and re-commit.