我有一个用于应用程序标签的字符串资源:
<string name="app_name">My application</string>我的AndroidManifest.xml是经典的:
<manifest.. >
<application
android:name="my.package"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:largeHeap="true"
android:supportsRtl="true"
android:theme="@style/AppTheme"
tools:replace="android:icon">
<activity ...我将GoPro SDK作为依赖项。在某些设备(HTC )上,我的应用程序不是作为“我的应用程序”签名,而是作为"GoPro SDK“签名。
我已经发现,GoPro SDK实际上包含资源:
<string name="app_name">GoPro SDK</string>GoPro SDK是.arr归档文件。
如何在不重命名变量app_name的情况下修复它
发布于 2017-11-16 11:54:24
尝试将以下属性添加到应用程序标记:
<application
tools:replace="label, icon"/>此外,我还发现有些活动可能包含没有tools:replace="label"的标签。
<activity android:label="@string/app_name" />只需从活动中删除label或添加tools:replace="label"属性即可
https://stackoverflow.com/questions/47133040
复制相似问题