应用程序根据 Android 更改其名称

时间:2021-04-08 15:57:00

标签: java android android-studio

我使用 Android Studio 开发了一个名为 eCoding 的应用。但是,在某些使用旧版 Android 的设备上,该名称是可以的。在当前的 Android 设备上,名称更改为 FolioReader(我使用的框架)。有谁知道为什么会发生这种情况以及如何解决它?

My androidmanifest and strings

1 个答案:

答案 0 :(得分:2)

我认为您正在使用 FolioReader 库并且名称取自其资源,因此在您的清单文件中您需要使用您自己的名称,如下所示

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.yourpackage"
xmlns:tools="http://schemas.android.com/tools">

然后

<application
tools:replace="label" 
 android:label="YourAppName"
../>

更新:

使用带有另一个字符串名称的标签

 android:label="@string/app_name"

android:label="@string/app_name_txt"`

如果上述解决方案不起作用,请尝试