0

While looking at an application manifest file, I found an activity with configChanges declared as :

android:configChanges="${configuration}"

I wasn't aware we could use variables in manifest file. Where should I look for the definition of this variable 'configuration'? I looked in the manifest file and didn't find it. This is a gradle project so I looked in the build.gradle file too, but it wasn't defined there.

When declaring something like this, where am I allowed to provided definition for such variables?

Also, can I override manifest declaration of some values e.g. minSdkVersion by later redefining them somewhere else( like build.gradle for the purpose of declaring separate values for different android versions)?

uptoNoGood
  • 566
  • 5
  • 20
  • Basically, the variables defined in the build.gradle file can be accessed in Manifest file with a $ prefix. Could you please check in both app level gradle and module level gradle once again. – Vinodh Dec 06 '16 at 05:36
  • Thanks! I found it in another gradle which was "apply from: " from build.gradle – uptoNoGood Dec 07 '16 at 11:09
  • Pls upvote the answer i posted as was helpful. – Vinodh Dec 07 '16 at 11:12

1 Answers1

0

the variables defined in the build.gradle file can be accessed in Manifest file with a $ prefix. please check in both app level gradle and module level gradle once again.

Vinodh
  • 1,069
  • 2
  • 10
  • 22