When I created android project in android studio, I found field Company Domain Name .I have created with some name first. Now I want to change that company domain name. Is it p
You can able to change the domain using following steps. For your example you are trying to change the domain name com.example
to com.example1
. So your package name should look like com.example.application_name
.
Refactor -> Move
.Move package 'com.example.application_name' to another package.
and then click ok
.yes
on that warning.To package
value to the new domain name com.example1
and then make sure the check box is enabled for Search in comments and String
and Search for text occurrences
and then click Refactor
. Now a new dialog will open and ask a confirmation to create the new package. Click Yes
.com.example
and ask you to refactor. Click Do Refactor
in that. That's it. you renamed the domain name from com.example
to com.example1
. The previous package will not be deleted. if you don't want that means you can delete it.