Jumat, 06 Januari 2023

Cara Ganti Package Name Project Di Android Studio

 

Method 1

Step 1: Click on the Setting Icon and Uncheck Compact Middle Packages

Step 2: Click on your Project Name and Go to Refractor > Rename 

Step 3: Click on Rename Packages

Step 4: Change the package name and click on Refractor

Step 5: Click on Do Refractor and then you will fill in finding that the project name is changed

Method 2

Open app/build.gradle and change this line:

android {

  defaultConfig {

      applicationId “com.example.yournewprojectname”

    }

}

Method 3

Update app/src/main/res/values/strings.xml:

<string name=”app_name”>New Project Name</string>

Doing this name of your app will be changed.

Method 4

Open settings.gradle and change this line:

rootProject.name = “New Project Name”

Method 5

Open app/src/main/AndroidManifest.xml and change the following line:

<manifest xmlns:android=”http://schemas.android.com/apk/res/android”

  package=”com.example.yournewprojectnamewithoutspaces”>

Tidak ada komentar:

Posting Komentar