Rename package in Android Studio

后端 未结 30 2022
深忆病人
深忆病人 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 06:10

    The common mistake that one can make is one cannot rename the package structure i.e. it is not possible to change com.name.android to com.Renamed.android when one tries to modify at the com.name.android level.

    In order to have the same desired change go one level up i.e com.name and here when you refactor change it to Renamed. This will work always.

提交回复
热议问题