How to remove parts of an android package name with AndroidStudio?
<p>I have an android project with a package name like <code>com.example.alexander.app</code> and I want to change this to a name containing only three parts, like <code>com.alexapps.firstapp</code>. However, after searching several sites, I still have no idea how to do that in AndroidStudio (2.1.3).</p>

<p>I found the following answer, which do not fully answer my question: </p>

<ul>
<li><a href="https://stackoverflow.com/questions/18558077/fully-change-package-name-including-company-domain">Answer 1</a> requires the file <code>R.java</code> which I cannot find</li>
<li><a href="https://stackoverflow.com/questions/25848046/how-to-change-package-name-in-android-studio">Answer 2</a> looked very good by using methods in AndroidStudio. Unfortunately, even after cleaning and rebuilding the project, the package name was not changed on my single activity.</li>
<li><a href="https://stackoverflow.com/questions/28855664/android-studio-remove-middle-part-from-package-name">Answer 3</a>: I searched for the string, and found more than 1000 hints!! Therefore I have not continued with this solution to replace more than 1000 hits, as this does not sound right. I have only 1 (one!) single activity in this test app...  </li>
<li><a href="https://stackoverflow.com/questions/16804093/android-studio-rename-package">Answer 4</a>: Very good answer, but only useful if you want to change each of the package name parts (and neither increasing nor decreasing the number of parts in the package name).</li>
</ul>

<p>So is there a way to remove a part of a package name with AndroidStudio?</p>