Resources referenced from the manifest cannot vary by configuration

后端 未结 2 1253
无人及你
无人及你 2021-01-17 18:01

When I want to insert the follow meta-tag:



        
相关标签:
2条回答
  • 2021-01-17 18:42

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

    0 讨论(0)
  • 2021-01-17 18:45

    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

    0 讨论(0)
提交回复
热议问题