Skip to content
0:00 / 0:00

#androidstudio#gradle

Rename root module in Android Studio (The easiest way)

V L

46 subscribers • 1 video on Hallway

YouTube
  • Recommended by 1 person: 1 on Stack Overflow and its sister sites.
  • May be out of date. The tools, versions or practices it shows have likely moved on.

Beginner. No background in the topic needed.

7.4K views6 years ago1 recommendation

Mobile developmentTools and practiceAndroid and Jetpack ComposeVim, Emacs and editors

A quick guide on how to rename the root module and update package references in Android Studio.

Guide: myworldbox.github.io/ This is my personal website, you can find all tutorials in my blog: myworldbox. payme.hsbc/myworldbox You can make a denation here.

Why it's here

1 person recommends this

What people say. Recommended as a quick video tutorial for renaming projects in Android Studio.

myworldboxon Stack Overflow • Recommends

On “Change project name on Android Studio”

Video tutorial: link to this video Refactor the name to com.example.NewFileName in path: app>java>com.example.OldFileName Go to strings.xml and change code to <string name="app_name”>NewFileName</string> in path: app>res>values>strings.xml Go to build.gradle (Module: app) and change code to applicationId "com.example.NewFileName” in path: Gradle Scripts>build.gradle (Module: app) Go to settings.gradle (Project Settings) and change code to rootProject.name='NewFileName' in path: Gradle Scripts>build.gradle (Project Settings) Press Sync now prompt Rename your folder to NewFileName outside Android Studio Reopen your project and rebuild project in path: Build>Rebuild Pro…