Nico Hernandez Torres Nico Hernandez Torres - 11 months ago 66
Android Question

Changes file in values.xml android not reflect to run app

I am having problems with android application android studio and already built. Try to change values in the values.xml

file located in the folder. Every time I make a change and compile the application changes are lost. I read about this problem and Instant run, I have applied the possible solutions and I could not get it.

I disabled in Instant Run "Enable instant run to ..." and also "Restart activity ...." without much success. I am working with Studio Android 2.1.3 and the same version for Gradle.

Answer Source

You are changing values in file which is generated by Android Studio, so it is changed every time you build your project. All files inside build folders are generated and there is no need in changing them.

Instead you should put your values in values.xml under app->src->main->res->values.