2

There are already questions on this but I would like to learn current preffered / best approach for changing the package name in Android Studio. I don't want to mess things up trying to change it. I am using Android Studio version 1.5

1 Answers1

6

To rename the package name in Android studio,

Click on the setting icon in the project section and untick the Compact empty Middle Packages,

after that the package will split into multiple folder names,

then right click on the folder you need to change the name, click on refactor-> Rename-> Type the name you want to change in -> Do refactor -> Refactor Directory Working for me

enter image description here

enter image description here

Mureed Hussain
  • 2,745
  • 2
  • 18
  • 22
  • I completed these steps , now I get an error saying 'can't find symbol R' –  Sep 28 '16 at 05:47
  • try rebuilding the project. Build -> Rebuild Project.... Still if not work Try Build -> Clean Project...... hope it will solve but if that also not work then let me know if still this error – Mureed Hussain Sep 28 '16 at 06:47
  • if still you see that error Try this "Tools" -> "Android" -> "Sync Project with Gradle Files" – Mureed Hussain Sep 28 '16 at 06:49