i have following gradle dir structure:
app java com me.android.mysample util car.java purchase.java mainactivity.java
i wanted rename package "me.android.mysample" "you.android.yoursample", right clicked package , "renamed package", rename "mysample" subpackage instead of whole package.
i able rename first part "me" "you" in finder, won't take care of references in code such as
import me.android.mysample
to android studio, it's "move" operation , not "rename" operation.
the steps:
- select package want rename press f6
- press "ok" default selection should need
- press "yes" warning dialog start refactoring process
- review list of files refactored, press "do refactor"