如图所示位置
添加忽略文件,代码如下
<ignored path=".gradle/" />
<ignored path=".idea/" />
<ignored path="gradle/" />
<ignored path="xxx/build/" />
<ignored mask="*.iml" />
<ignored path="local.properties" />
<ignored path="gradle.properties" />
<ignored path="build/" />
<ignored mask="*.apk" />