0

I am trying to change the name of a android application, and also its package name.

I am using Diawi to generate link of apk and test it on phone. I have changed the package name in manifest file, yet when I check the app details before installing apk file on mobile, it shows the previous name.

Can anyone tell me where to update the name of the application, so that it shows the new name in app details?

Bishan
  • 15,211
  • 52
  • 164
  • 258

2 Answers2

0

Change default config in your app level build.gradle as follows:

defaultConfig {
        ...
        applicationId <new-package-name>
        ...
}
Sagar
  • 23,903
  • 4
  • 62
  • 62
0

In your app folder, you will find build.gradle, You can search for applicationId to change your package name

applicationId "your.app.id"

defaultConfig {
    applicationId "your.app.id"
    minSdkVersion 16
    targetSdkVersion 26
    versionCode 1
    versionName "1.0"
}

If you want change application name, Goto AndroidManifest.xml file and you can change it by renaming Application label

android:label="@string/app_name"

<manifest xmlns:android="http://schemas.android.com/apk/res/android">
 <application
    android:allowBackup="true"
    android:label="@string/app_name"
    android:icon="@drawable/ic_launcher"
    android:theme="@style/AppTheme">

  ....

 </application>

Hope this helps

Naveen T P
  • 6,955
  • 2
  • 22
  • 29