Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Project.xml file automatically gets edited and staged for commit in android studio after update

After updating Android Studio to 3.6.1, the following lines get added in Project.xml in .idea folder.

<AndroidXmlCodeStyleSettings>
  <option name="ARRANGEMENT_SETTINGS_MIGRATED_TO_191" value="true" />
</AndroidXmlCodeStyleSettings>

This file was previously added to git and pushed to GitHub so locally adding to untrack is also not helping. Upon doing so, it is staging it as a new file during the next time I click commit option in VCS tab.

I found here that it might be due to the NDK support plugin but even disabling it is not working.

like image 821
Sonu Sourav Avatar asked Mar 17 '20 16:03

Sonu Sourav


1 Answers

You just need the remove this file from git.
Use:

git rm --cached <file>

and its no longer be tracked by git.

like image 191
ykaner Avatar answered Nov 07 '22 22:11

ykaner