Android Programming – How to Change the Project Name in the Gradle Files (Android Studio)

Another

Android

app dev

tips

I recently began working on a new Android app using my Linux laptop. I retrieved an existing project from GitHub with the intention of changing its name. This allowed me to start a fresh project while making use of the previous work I had done.

Lately, I’ve kicked off the development of another Android app on my Linux laptop. To achieve this, I fetched an existing project from GitHub and intended to alter the project name. The goal was to initiate an entirely new project while leveraging the groundwork I had done before.

Here is the step-by-step tutorial.

  1. Open the settings.gradle file in a text editor.
  2. Find the line that starts with rootProject.name = '.
  3. Replace the existing project name with the new project name.
  4. Save the settings.gradle file.
  5. Open the build.gradle file in a text editor.
  6. Find the line that starts with applicationId = '.
  7. Replace the existing package name with the new package name.
  8. Save the build.gradle file.

Leave a Reply