Create gradle res value for different api versions

170 Views Asked by At

Is there any way to create resValue in gradle for specific api version?

I have a settings.xml in values and values-v21 folder. Is there any way to override them via gradle resValue (I need to have different values in those two api versions)?

1

There are 1 best solutions below

0
On

You need to define: "api" flavor dimension to group configurations based on API level.

See more on how to define : https://developer.android.com/studio/build/gradle-tips.html