Loading ...

Change the package name of your android application in android studio | CodeAsp.Net

Change the package name of your android application in android studio

 /5
0 (0votes)

You may need to change the package name for your android application due to various reasons ranging from a small typo to duplicate domain name. Changing the package name saves you the trouble of creating a new project and then copying all the files. 

Steps to change the package name of your android project are:

1. Go to the "AndroidManiFest.xml" file.

2. Under the manifest tag you will see the attribute package. This is where your android package name has been written.

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.package_name_to_be_changed.codeasp.packagenamechangeproject" >

The package name here is package_name_to_be_changed.

3. To change the package name, double click on the current package name or select the package name and click the right mouse button(Windows users). Mac user's press the track pad with two fingers.

The option menu pop ups. Hover on Refactor.

4. Click Rename.

Note: Shortcut for reaching the same menu: shift + F6+ fn 

5. A new dialog box will open up on the top; here click on Rename package.

6. On clicking the Rename Package, another dialog box will pop up with a field having editable text in it. Change or rename the package name as you desire.

Rename it to:

Now click Refactor.

7. After clicking the Refactor button, a the Find window pops up.Here, the android studio shows you all the occurrences or usages of the package name you set previously. You can either cancel it by clicking the Cancel button, or carry on with the change by clicking Do Refactor.

8. Click on Do Refactor. You will see all the occurrences of the previous package name has been changed.

9. Now click on the "app" from your project view.

Press the right click button (Windows users). Mac user's press the track pad with two fingers. (This has to be done on the app folder only).

10. The context menu will open. Select the Open module settings

11. With the app folder selected, click on Flavours. Notice that under Application id the package name is still the same.

Note: Shortcut to reach the same menu: command + ↓

12. Rename that to the changed package name. And click OK.

.

13. After that you will see a message: Gradle sync in progress.  


Your project's package name has been successfully changed.

Comments (23)

   
bankruptcy software

I want you to thank for your time of this wonderful read!!! I definately enjoy every little bit of it and I have you bookmarked to check out new stuff of your blog a must read blog!!!!

9/26/2016
 · 
by
   
San Diego Moving Company

This is also a very good post which I really enjoy reading. It is not everyday that I have the possibility to see something like this.

9/28/2016
 · 
by
   
bankruptcy software

We are really grateful for your blog post. You will find a lot of approaches after visiting your post. Great work.

9/28/2016
 · 
by
   
travertine tile supplier delhi

Thank you, I've been seeking for info about this subject matter for ages and yours is the best I have discovered so far.

9/29/2016
 · 
by
   
luxury holidays packages

Good post. I learn some thing tougher on distinct blogs everyday. Most commonly it really is stimulating to learn to read content material from other writers and exercise a specific thing there.

9/29/2016
 · 
by
   
Packers And Movers Bangalore

We Provide Best Packers And Movers Bangalore List for Get Free Best Quotes, Compare Charges, Save Money And Time,
Household Shifting Services @ http://packersmoversbangalore.in/
http://packersmoversbangalore.in/packers-and-movers-bangalore-to-hyderabad

2/22/2017
 · 
by
   
packers and movers bangalore

Packers and Movers Bangalore list, Cheap Packers Movers Bangalore Charges, Local, Affordable Household Shifting Bangalore,
@ http://Packers-and-Movers-Bangalore.in/

2/24/2017
 · 
by
   
prena sharma

We Provide Best Packers And Movers Gurgaon List for Get Free Best Quotes, Compare Charges,
Save Money And Time, Household Shifting Services @ http://packers-and-movers-gurgaon.in/

3/14/2017
 · 
by
   
Ritu Somani

i really like your blog, thanks for share...
please visit are website..
http://packersmovershyderabadcity.in/
http://blog.packersmovershyderabadcity.in/

4/4/2017
 · 
by
   
surbhi sharma

An excellent information provided thanks for all the information
visit here :
http://packersmoversbangalore.in/packers-and-movers-bangalore-to-hyderabad

4/4/2017
 · 
by
   
Packers And Movers Bangalore

This research is practically done by you and gives good ideas. visit here some useful content here.
http://packers-movers-bangalore.in/
http://blog.packers-movers-bangalore.in/

5/2/2017
 · 
by
   
packers And Movers Bangalore

This research is practically done by you and gives good ideas. visit here some useful content here. i love this website. your site is good and your work is very good for social work.. keep work.
http://packersmoversbangalore.in/packers-and-movers-raipur
http://packersmoversbangalore.in/packers-and-movers-pune

5/2/2017
 · 
by
   
Packers And Movers Trichy

Thanks for sharing such a valuable information.Im very thankful to you that you had given me this opportunity to write on this blog.please visit our website I assure you that it will be very useful for our website.
http://packersmoverschennai.in/packers-and-movers-trichy

5/2/2017
 · 
by
   
Rajat Gaikwad

I think this is one of the best blog for me because this is really helpful for me. Thanks for sharing this valuable information for free...
https://www.aryawartapackers.com/packers-and-movers-in-chandigarh.html

1/20/2020
 · 
by
   
prabhat

EZ1 is one of the best shifting company in India provides services related to packers and movers.

1/22/2020
 · 
by
   
akshitasen

Hello! Hyderabad peoples, we are glad to see you right here. We realize what you want and why you're here. That’s why we make an interesting agency for you, who come up with the delight you usually need. VIP Hyderabad Escorts is the corporation in which all your desires and fantasies will whole by using our seductive Girls. You're the lucky one if you are a part of Hyderabad. As that we're the top enterprise of your region, who offer without a doubt and exceptional each collectively. The freshest personalities of your metropolis are here, equipped to offer you the most up to date provider. In the next paragraph, we speak approximately our Hot Hyderabad Girl.
http://www.akshitasen.net/

2/29/2020
 · 
by
   
you24healings

Vruushali is very charismatic personality promoting Spiritualism as guided by Divine Intelligence and has strong psychic skills making her a natural motivator to lead others on their Spiritual Journey.

3/29/2020
 · 
by
   
johannesb voodoo

<a href="https://www.ndiibaspells.com/" target="_blank"> Love spells, Lost Love spells . Love spells Work </a>

<a href="https://www.ndiibaspells.com/love-spells-that-work-immediately" target="_blank"> Love spells That Work Immediately </a>

<a href="https://www.ndiibaspells.com/lucky-spells" target="_blank"> Luck Spells , luck charms </a>

<a href="https://www.ndiibaspells.com/astrology" target="_blank"> Astrologer, Indian Vedic Astrology, Astrologer In Johannesburg </a>

<a href="https://www.ndiibaspells.com/gay-love-spell" target="_blank"> gay love spells,lesibian love spells,Gay love spell fertility </a>

<a href="https://www.ndiibaspells.com/love-spell-casters" target="_blank"> best love spells casters,imidiately love spells casters,love spell caster that work </a>

<a href="https://www.ndiibaspells.com/voodoo-spell" target="_blank"> voodoo,voodoo love spells,voodoo spell that work </a>

<a href="https://www.ndiibaspells.com/casting" target="_blank"> casting spells in africa,casting spell in usa,casting spells in europe </a>

<a href="https://www.ndiibaspells.com/magic-rings" target="_blank"> magic ring in south africa,magic ring that work first,magic ring in usa,magic ring work immediately </a>

<a href="https://www.ndiibaspells.com/traditional-healing" target="_blank"> traditional healer,best traditional healer in Africa,traditiona healing in Africa </a>

<a href="https://www.ndiibaspells.com/black-magic-spells" target="_blank"> black magic spells,black magic that works ,black magic that working fast </a>

<a href="https://www.ndiibaspells.com/sandawana-oil-and-skin" target="_blank"> sandawana oil,skin oil, love ointment ,sandawana for women,sandawana for men </a>

<a href="https://www.ndiibaspells.com/astrology" target="_blank"> Astrology,indian astrology, </a>

<a href="https://www.ndiibaspells.com/psychic-reading" target="_blank"> psychic spells,psychic reading in johannesburg,psychic reading in Usa,psychic reading in Africa </a>

<a href="https://www.ndiibaspells.com/marriage-spell" target="_blank"> love marriage,marriage spells in usa,relationship problems,marriage spells in Africa </a>

<a href="https://www.ndiibaspells.com/divorce-spell" target="_blank"> Divorce spells,make him devorce you,divorce spell in Usa </a>

<a href="https://www.ndiibaspells.com/stop-divorce-spell" target="_blank"> divorce,stop divorce spell in usa </a>

<a href="https://www.ndiibaspells.com/bring-back-lost-lover" target="_blank"> get your lover back,get him today,bring back your love in usa,bring back your lover in Africa </a>

<a href="https://www.ndiibaspells.com/love-attraction-spells" target="_blank"> love attraction spells,attraction spell,love binding spells </a>

<a href="https://www.ndiibaspells.com/lottery-spell" target="_blank"> lottery spells, lottery spell in Usa </a>

<a href="https://www.ndiibaspells.com/money-spell" target="_blank"> money spells that work,money spells that work fast </a>

<a href="https://www.ndiibaspells.com/spell-for-money" target="_blank"> love spells for money,money spells for you </a>

<a href="https://www.ndiibaspells.com/palm-reading" target="_blank"> palm reading,spells </a>

<a href="https://www.ndiibaspells.com/black-magic" target="_blank"> black magic spells </a>

<a href="https://www.ndiibaspells.com/wiccan-love-spell" target="_blank"> wiccan love,Honey jar love spells </a>

<a href="https://www.ndiibaspells.com/spell-caster" target="_blank"> spells casting, love spell caster,spell caster,casting </a>

<a href="https://www.ndiibaspells.com/african-magic" target="_blank"> African magic spells </a>

<a href="https://www.ndiibaspells.com/dark-magic" target="_blank"> dark magic, black magic spell </a>

<a href="https://www.ndiibaspells.com/best-spell-casters" target="_blank"> best love binding,best love spells caster </a>

<a href="https://www.ndiibaspells.com/powerful-spell-casting" target="_blank"> powerful spell,powerful spell caster today.best powerful spells </a>

<a href="https://www.ndiibaspells.com/the-immediate-love-spells" target="_blank"> immidiately love spell,love spells that work for you </a>

<a href="https://www.ndiibaspells.com/success-spells" target="_blank"> success spells in usa,Achievement spell </a>

<a href="https://www.ndiibaspells.com/spell-casting" target="_blank"> spells,voodoo,psychic spells,spells that works </a>

<a href="https://www.ndiibaspells.com/binding-love-spells" target="_blank"> binding spells,best love spells,spell casting online </a>

5/25/2020
 · 
by
  • :*
  • :*
  • :
 *

Top Posts