Wednesday, September 23, 2015

Rename package in Android Studio

How do you rename a package in Android Studio?

In the project pane click on the gear icon

 

Uncheck the "Compact Empty Middle Packages"



The package will be now shown as separate directories.

Go to the directory that you want to rename and right click
Select Refractor and then Rename

 

Select Rename Directory










Click Rename Package




Enter new name and click Refractor (if asked do a rename-All)

Update the application ID in the grade Build File (build.grade)

Rebuild.


No comments:

Post a Comment