<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[how to change package name in android studio 2020]]></title><description><![CDATA[<p dir="auto">Please guide steps to change the package name.</p>
]]></description><link>https://community.secnto.com//topic/2071/how-to-change-package-name-in-android-studio-2020</link><generator>RSS for Node</generator><lastBuildDate>Tue, 09 Jun 2026 01:55:11 GMT</lastBuildDate><atom:link href="https://community.secnto.com//topic/2071.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 12 Nov 2020 13:48:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to how to change package name in android studio 2020 on Thu, 12 Nov 2020 14:34:51 GMT]]></title><description><![CDATA[<p dir="auto">For example, if you want to change com.example.app to my.awesome.game, then:</p>
<ol>
<li>
<p dir="auto">In your Project pane, click on the little gear icon (Gears icon)<img src="https://i.imgur.com/q7pj4uv.png" alt="8df64537-0541-47c3-b517-2095c30740a9-image.png" class=" img-fluid img-markdown" /></p>
</li>
<li>
<p dir="auto">Uncheck the Compact Empty Middle Packages optionhttps://i.stack.imgur.com/lkezT.png<br />
<img src="https://i.imgur.com/C3u4DMa.png" alt="da3cbc20-a8ab-4704-aaa2-df24c0ab192d-image.png" class=" img-fluid img-markdown" /></p>
</li>
<li>
<p dir="auto">Your package directory will now be broken up into individual directories</p>
</li>
<li>
<p dir="auto">Individually select each directory you want to rename, and:</p>
</li>
</ol>
<ul>
<li>Right-click it</li>
<li>Select <strong>Refactor</strong></li>
<li>Click on <strong>Rename</strong></li>
<li>In the pop-up dialog, click on <strong>Rename Package</strong> instead of Rename Directory</li>
<li>Enter the new name and hit Refactor</li>
<li>Click Do Refactor in the bottom</li>
<li>Allow a minute to let Android Studio update all changes</li>
</ul>
<p dir="auto">Note: When renaming <em><strong>com</strong></em> in Android Studio, it might give a warning. In such case, select <strong>Rename All</strong><br />
<img src="https://i.imgur.com/dXToxh5.png" alt="eae1f38c-6686-43fc-958d-d7f5adc933dc-image.png" class=" img-fluid img-markdown" /></p>
<ol start="5">
<li>Now open your Gradle Build File (build.gradle - Usually app or mobile). Update the applicationId in the defaultConfig to your new Package Name and Sync Gradle, if it hasn’t already been updated automatically:</li>
</ol>
<p dir="auto">You may need to change the package= attribute in your manifest.<br />
Clean and Rebuild.<br />
<img src="https://i.imgur.com/sb8HoTy.png" alt="5738caa7-6946-423c-a1b1-9907cc1fbfbd-image.png" class=" img-fluid img-markdown" /><br />
Done! Anyway, Android Studio needs to make this process a little simpler.</p>
]]></description><link>https://community.secnto.com//post/6036</link><guid isPermaLink="true">https://community.secnto.com//post/6036</guid><dc:creator><![CDATA[Love Uzair]]></dc:creator><pubDate>Thu, 12 Nov 2020 14:34:51 GMT</pubDate></item></channel></rss>