Android Studio holds lock on version.properties file which interferes with git operations
Checklist
- [ ] I tried to reproduce the bug in my fork of the Kotlin Libraries Playground, or in one of the samples in this repository
- [ ] I have run with
$ ./gradlew --scan refreshVersionsto provide a Build Scan URL
Describe the bug
I'm running Android Studio 4.1 and recently changed over to refreshVersions. I've noticed that if I want to delete something from the version.properties file by discarding changes from GitKraken, it doesn't work. I have to close Android Studio to be able to discard it. That's not too big of an issue but I just tried to do a rebase where there was version.properties changes and I got failures in both Android Studio and GitKraken with very general errors. I tried aborting the rebase from the terminal a few times and trying again to make sure it was 100% repeatable. Then, aborted the rebase, shut down Android Studio, and was able to rebase just fine.
To Reproduce
- Open Android Studio
- Attempt to rebase onto a branch that would require version.properties to change
Expected behavior Successful rebase.
Additional context