Android Studio - Refactor move files still keeps a copy in original place

Viewed 278

In visual Studio when I move files into a package on the same original level, the files that I move also remain where they were.

Picture

I dragged each of these Kotlin files (AddHappyPlaceActivity and MainActivity) into the "activities" package, then pressed refactor in the screen that appears. I would expect the original files to not appear.

Thanks a lot.

2 Answers

Posting an answer is because I don't have enough reputation. after refactoring the file actually moves there but it is bug I also have noticed, A copy of the file seems to be present in the old places even after refactoring but after refreshing It is gone.

I'm able to resolve this issue by simply closing and re-opening Android Studio.

Related