Android - an external library changes the name of the entire application

I added an external library to my project and since it has the @ string / app_name tag in the values ​​file, it changes all my application name. I cannot edit this values ​​file. And somehow the android studio prefers to use the external resource app_name. How can i fix this?

Decision:

as Nicholas Ty said:

Change the application name in AndroidManifest.XML under the tag. You should see the android resource: label = @ string / app_name. In your string.xml file, create another tag, say @ string / app_name_mine. Change android: label = @ string / app_name to android: label = @ string / app_name_mine

I also need to add:

tools:replace="label" 

for my application tag.

+5
source share
1 answer

Change the application name in AndroidManifest.XML in the <application> .

You should see the android: label=@string /app_name resource android: label=@string /app_name .

In string.xml create another tag, say @string/app_name_mine .

Change android: label=@string /app_name to android: label=@string /app_name_mine

+5
source

Source: https://habr.com/ru/post/1236304/


All Articles