Usually package name in Android Studio resembles something like this – com.vishal.someapp.
There are different ways to rename package name for your app in Android Studio. It depends on which part of the package name you want to rename. If you just want to rename the last part, (i.e someapp in the example above), it is relatively easier. If you want to rename the company domain, for your app, you have to move everything from your current company domain folder, (i.e vishal in the above example) to a new folder of your desired name, changing domain name in Android Studio is also easy at android studio does all the job for you. So let’s begin with changing package name –
Changing package name in Android Studio
- Select the package same you want to replace and right click on it(shortcut is shift+F6).
- Click on Refactor and then rename.
- A dialog box will pop-up giving some information as shown below, click on rename package.
- A new dialog will show up, type your desired name and then click on refactor.
- This is the final step, all the usage of the current package name with be shown, now simply click of do refactor and you are done.
Changing company domain name in Android Studio.
- Similar to changing package name, select the package for which you want to change the company domain, and then right click on it.
- Click on refactor then move.
- A dialog box will pop up with three options, select the move package option and then click ok.
- A new dialog will pop us asking you for new package to move to, enter you desired company domain. Just enter the new name for the company domain you want only and click on refactor.
- Finally, just as the last step above, click on do refactor after it looks for usage and you are done! You have successfully change the company domain name in Android Studio.
It’s pretty easy to do once you figure out how, if you have any problems, feel free to comment them below. I’ll get back to you asap.
Nice Blog…Waiting for Next Update..
mobile app development companies in chennai
mobile app development company in chennai
I’ve been searching for some decent stuff on the subject and haven't had any luck up until this point, You just got a new biggest fan!.. modeling names
I have read a few of the articles on your website now, and I really like your style of blogging. I added it to my favorites blog site list and will be checking back soon. Please check out my site as well and let me know what you think. shoes brand names