I came across this strange issue, I have a very large Android git repo, there is a libs folder which contains a jar file. I cloned this repo to my local and it works all right till one day there is Gradle and Android Studio upgrade. After upgrading, my project can't build because of missing this jar file.
I never deleted this jar file, but from git status, it shows
Changes not staged for commit:
(use "git add/rm ..." to update what will be committed)
(use "git checkout -- ..." to discard changes in working directory)
`deleted: XXXRedLaser/libs/redlasersdk.jar`
So I checkout it, then I do git status again. It shows me exactly same status information. Then I realize, every time I check it out, immediately, it gets deleted right after check out.
Then I started a new local repo and git clone the project into it. After cloning, first thing I do is git status, guess what, the jar gets deleted already and status is the same as above!
I ask my colleague to git clone and test, it works all right on his laptop, the Jar is not deleted.
(I have checked git ignore file, jar file is not ignored. I am pretty sure above behavior has nothing to do with git ignore. And this should also has nothing to do with IDE because I check everything from command line)
Anyone has any clue what should I do and what should I check ?