Liam Baron
Liam Baron

Reputation: 43

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

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.

Upvotes: 3

Views: 885

Answers (3)

Ebru Hatipoglu
Ebru Hatipoglu

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

Adam Johns
Adam Johns

Reputation: 36353

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

Upvotes: 0

Bilal Bangash
Bilal Bangash

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

Related Questions