Software & Apps

How To Rename an Android Studio Project

Android

Have you been using Android Studio to build apps for various devices but don’t know how to rename your projects? Although many users find it difficult, the whole process is pretty simple.

Quick Answer

Follow these steps to rename an Android Studio project.

1. Launch Android Studio, right-click the project, and select “Show in Explorer”.
2. Launch File Explorer, navigate to your project file, and rename it.
3. Open Android Studio, click “Open an existing Android Studio Project”, open your project, click “Build”, and select “Clean Project”.
4. Click “settings.gradle”, rename the project, and click “Sync”.

To simplify things, we took the time to write a comprehensive step-by-step to rename Android Studio projects. We will also explore the process of creating a new Android Studio project.

Renaming an Android Studio Project

If you don’t know how to rename the Android Studio project, try the following 4 step-by-step methods to do this task without facing much trouble.

Method #1: Renaming the Root Folder

The best way to rename the Android Studio project is by changing the root folder name in the following way.

Step #1: Rename the Project in File Explorer

In the first step, you need to launch Android Studio and right-click the project name. Select “Show in Explorer” in the drop-down. Exit Android Studio and launch “File Explorer”. Navigate to the project file and rename it.

Image 575

Step #2: Clean the Android Studio Project

In the next step, select “Open an existing Android Studio Project”. Open your project and click “Build” from the toolbar. Click “Clean Project” in the drop-down.

Image 576

Step #3: Rename the Android Studio Project

In the last step, click “settings.gradle” and rename the project. Click “Sync” at the bottom, and you’re done!

Image 577

Method #2: Renaming a Project From the Project Panel

A simple way to rename your Android Studio project is by changing the name from the project panel by doing these steps.

Step #1: Rename the Project in Android Studio

In the first step, you need to launch Android Studio and click “Settings” in the project panel. Disable “Compact Empty Middle Packages”. Right-click your project, select “Refactor” in the drop-down, and click “Rename”.

Image 578

Click “Rename Package” in the dialog box and enter a new name. Click “Refactor” and select “Do Refactor”.

Step #2: Rename the Application ID

In the next step, click “Settings” and enable “Compact Empty Middle Packages”. Click “Gradle Scripts” and select “build.gradle”. Rename the “applicationID” in the “DefaultConfig” section and click “Sync Now”.

Image 579

Step #3: Rebuild the Project

In the last step, click “Build” in the toolbar. Click “Clean Project” and “Rebuild Project”.

Image 580

Method #3: Using Command Lines 

Another quick way to change the name of your Android Studio project is by changing any of the following command lines.

  • Open “settings.gradle” and replace this line: rootProject.name= “NewAndroidStudio Project”.
  • Open “app/build.gradle” and change this line to the new name: applicationID “com.example.newAndroidStudioproject”.

Method #4: Renaming the Manifest File

You can also change the name of the manifest file to rename an Android Studio project. To do this, navigate to “app/src/main/AndroidManifest.xml” and make changes to this line.

 <manifest xmlns: android=”http://schemas.android.com/apk/res/android” package= “com.example.newandroidstudioproject”>

How To Create a New Android Studio Project

If you want to avoid renaming an Android Studio project, create a new one with these steps.

  1. Launch Android Studio and select the old project. 
  2. Click “Edit” and select “Delete”.
  3. Click “File”. 
  4. Select “New”.
  5. Choose “New Project”, and you’re ready to create an Android Studio project. 

How To Update Android Studio

It is possible that Android Studio may not work correctly on your device. In this case, you can update it to the latest version in the following way.

  1. Launch Android Studio.
  2. Click “Configure”.
  3. Select “Check for Update”.
  4. If there is a pending update, select “Update & Restart”.
Image 582
Quick Tip

You can also check Android Studio updates by clicking “Help” in the application’s toolbar and selecting “Check for Updates”.

Summary

In this guide, we’ve discussed how to rename an Android Studio project. We’ve also discussed a method for creating a new project.

Furthermore, we’ve shared a method for updating the Android Studio application to the latest version.

Hopefully, your problem is resolved, and now you can quickly change the name of the app you are building for Android devices. 

Frequently Asked Questions

Is Android Studio safe?

The Android Studio application is safe to use and free of viruses; however, some programs running in the background may contain malware.

How do I install Android Studio?

To install the Android Studio project, open a browser, head to the Android Studio website, and download the application. Run the setup wizard and click “Next”. Choose a path for installation and click “Next”. Click “Finish” and launch the app.

Is Android Studio free?

The Android Studio application is free to install and create applications; however, you have to pay 25$ to upload the app to Google Play Store.

Leave a Comment

Your email address will not be published. Required fields are marked *