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 possible to change? Please help me to solve this issue !
First, open the project directory by right-clicking on the project name and click at show in explorer option. Step 2: Close the android studio, and go to the window explorer of the project directory and rename the root folder with a new name.
The domain name is used by Android Studio to generate a package name. Your package name is just a unique identifier for your application in the Google Play Store. It can be anything you want as long as it is unique. Generally, we use reverse domain names like com. something. or org.
Go to the app > manifests > AndroidManifest. xml file and change the android:label field in your application node in AndroidManifest.
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.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With