【问题标题】:How to rename android app? [duplicate]如何重命名安卓应用程序? [复制]
【发布时间】:2019-01-01 22:40:42
【问题描述】:

我最近在 google play store 上发布了一个应用程序,但下载时应用程序的名称不同。在 Android Studio 上创建了我的应用后,我在我的开发者控制台上在线重命名了它,所以在 Android Studio 上的包名称不同。

我认为包名称可能导致错误,有什么想法吗?

【问题讨论】:

    标签: android android-studio


    【解决方案1】:

    您必须转到您的清单并将 android:label 更改为您的应用程序的名称

    <application
            android:allowBackup="true"
            android:icon="@mipmap/ic_launcher"
            android:label="@string/app_name"
            android:roundIcon="@mipmap/ic_launcher_round"
            android:supportsRtl="true"
            android:theme="@style/AppTheme">
        </application>
    

    但是,它的默认值应该是"@string/app_name",如果你看到这个,你应该去 res 文件夹,然后是 values 文件夹,在 values 文件夹中你会看到 strings.xml,你会看到:

    <resources>
        <string name="app_name">Your app's Name</string>
    </resources>
    

    然后更改应用名称即可。

    【讨论】:

      【解决方案2】:

      通过更改清单

      <application
          android:allowBackup="true"
          android:hardwareAccelerated="true"
          android:icon="@mipmap/ic_launcher"
          android:label="Your App Name"
          android:roundIcon="@mipmap/ic_launcher_round"
          android:theme="@style/AppTheme.NoActionBar">
      
           ...
      
      </application>
      

      【讨论】:

        【解决方案3】:

        如果您只想更改安装后在手机上看到的应用名称,请尝试这些步骤。

        1.go to Value in res folder
        2.in values goto String file
        3.in String file 
        
        change the app name    
        <string name="app_name">LapiChat</string>
        to
           <string name="app_name">yourApp_NAme</string>
        

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2018-06-01
          • 1970-01-01
          • 2012-04-16
          • 1970-01-01
          相关资源
          最近更新 更多