Reputation: 43
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.
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.
Upvotes: 3
Views: 885
Reputation: 31
It looks like a bug of Android Studio. When I restart Android Studio, the file only was shown in the new location. The copy was disappeared.
Upvotes: 0
Reputation: 36353
I'm able to resolve this issue by simply closing and re-opening Android Studio.
Upvotes: 0
Reputation: 207
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.
Upvotes: 3