How to change package name in android studio?

Thaej Sooriya picture Thaej Sooriya · Sep 15, 2014 · Viewed 147.9k times · Source

I have made an app and it is my very first app so when I started coding, I left the package name as com.example.stuff and now when I try to upload to the play store it wont let me due to the package name. I have tried refactor-> rename the package name and changed it in the AndroidManifst.xml then I tried to upload again. I am once again left with the same message time after time.

I appreciate any help and thanks in advance. :)

Answer

Mehmet picture Mehmet · Dec 28, 2014

First click once on your package and then click setting icon on Android Studio.

Close/Unselect Compact Empty Middle Packages

Then, right click your package and rename it.

Thats all.

enter image description here