I'm working on a flutter project and it's not very clear to me why every time I push on GitHub the project there are always some files in the .gradle folder that changes or get created, they usually look like this 6.7/fileHashes/fileHashes.bin or 6.7/javaCompile/javaCompile.lock and I was wondering what they are for and maybe how not to change them every time I push because sometimes they make issues with my coworkers.
CodePudding user response:
That directory is usually added to the .gitignore file. If you create a new flutter project then inside the android folder there is a .gitignore with the following:
gradle-wrapper.jar
/.gradle
/captures/
/gradlew
/gradlew.bat
/local.properties
GeneratedPluginRegistrant.java
# Remember to never publicly share your keystore.
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
key.properties
**/*.keystore
**/*.jks
I'd personally recommend talking to the other developers and making sure that there isn't a reason it's not included in the .gitignore file and then if there is no reason, add it to the gitignore file.
CodePudding user response:
Solved! The problem is that I had that folder in the .gitignore
, but the folder was still tracked. I had to untrack the folder and then the problem was solved.