Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android - an external library changes the whole app name

Tags:

android

I have added an external library to my project and becuase it has a @string/app_name tag in its values file it changes my whole app name. I cant edit this values file. And somehow android studio prefer to take the external library app_name resource. How can i fix it?

Solution:

as Nicholas Tee said:

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

I have also needed to add an:

tools:replace="label"

to my application tag.

like image 206
Montoya Avatar asked Nov 19 '15 08:11

Montoya


People also ask

Can you change the name of an Android application after its deployment?

Change the App Name Usually, when you change the project name, you wanna change the name of your app too. Go to the res folder > values > strings. xml and change the app_name to your new name. Done!


1 Answers

Change the app name in your AndroidManifest.XML under <application> tag.

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

In your string.xml, create another tag, let's say @string/app_name_mine.

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

like image 87
Nicholas Tee Avatar answered Oct 21 '22 06:10

Nicholas Tee