Is it possible to change the company domain name in android studio after creating the project? -
when created android project in android studio, found field company domain name .i have created name first. want change company domain name. possible change? please me solve issue !
you can able change domain using following steps. example trying change domain name com.example
com.example1
. package name should com.example.application_name
.
- right click on package name in project explorer , select
refactor -> move
. - a new popup ask kind of refactor need do. in select first 1
move package 'com.example.application_name' package.
, clickok
. - a new warning window show package in multiple places. click
yes
on warning. - a new dialog opened. in that, change
to package
value new domain namecom.example1
, make sure check box enabledsearch in comments , string
,search text occurrences
, clickrefactor
. new dialog open , ask confirmation create new package. clickyes
. - in bottom window ll search named
com.example
, ask refactor. clickdo refactor
in that. that's it. renamed domain namecom.example
com.example1
. previous package not deleted. if don't want means can delete it.
Comments
Post a Comment