Rename package in Android Studio

后端 未结 30 1921
深忆病人
深忆病人 2020-11-21 05:21

How do you rename packages in the new IDE Android Studio, based on IntelliJ IDEA?

Is there an automatic refactoring included?

I want to make bulk refactorin

30条回答
  •  借酒劲吻你
    2020-11-21 05:56

    The best way is to write the new package name and drag from the older package name.

    The second way, if you click Refactor then move option then rename the package name, it will rename the package name and then rebuild.

    In Build.gradle you have to do manually, if you Refactor then it will not rename in Build.gradle.

提交回复
热议问题