Resources referenced from the manifest cannot vary by configuration

北城以北 提交于 2019-12-01 16:00:25
nshmura

Variation of resources in AndroidManifest.xml is detected as error.

It may be ignored like this:

<?xml version="1.0" encoding="utf-8"?>
<manifest ...
          xmlns:tools="http://schemas.android.com/tools"
          ...>

    ...

    <meta-data
            android:name="com.android.systemui.action_assist_icon"
            android:resource="@mipmap/ic_launcher"
            tools:ignore="ManifestResource" />

   ...

</manifest>

see: Android : Facebook app id showing error in values-ta/strings.xml and can't able to generate signed apk

I moved such strings to globalstrings.xml and removed the references from the locale files.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!