Android Studio-wont remember new edits and automatically reverts to old versions of files sometimes

后端 未结 6 1068
臣服心动
臣服心动 2021-01-17 14:37

Every once and a while I have an issue with the new Android Studio. Sometimes while editing, if I make a mistake in one of my files, then try to build it, Android studio wi

6条回答
  •  遥遥无期
    2021-01-17 15:19

    I still have this issue, the only way I have found to fix it is to go to the terminal in android studio and run

    rm -R app/build/intermediates/data-binding-layout-out
    

    Android Studio is failing to delete the last build of the layout, when you try to compile again. Once you do it manually everything is back to normal.

提交回复
热议问题