Monday, 4 January 2016

XML : strings.xml conflict in Android Manifest

I have this in Android Manifest:

  <application      android:label="@string/app_name"      ...  </application>    

and in strings.xml:

   <string name="app_name">My App Name</string>    

Everything ok. Now, my problem is that I'm using an aar dependency whose strings.xml file contains an item named app_name, too.

   <string name="app_name">My Library Name</string>    

And my project is using the second one instead.

How can I solve this conflict?

No comments:

Post a Comment