Android Gradle edit

Adding product flavor-specific resources

Resources can be added for a specific product flavor.

For this example, assume that we have already defined two product flavors called free and paid. In order to add product flavor-specific resources, we create additional resource folders alongside the main/res folder, which we can then add resources to like usual. For this example, we’ll define a string, status, for each product flavor:


    <string name="status">Default</string>


    <string name="status">Free</string>


    <string name="status">Paid</string>

The product flavor-specific status strings will override the value for status in the main flavor.

Feedback about page:

Optional: your email if you want me to get back to you:

Table Of Contents
3 Gradle
64 Menu
112 Loader
119 Xposed
132 Colors
135 Fresco
140 AdMob
147 Button
156 Vk SDK
170 XMPP
176 OpenCV
200 FileIO
203 Moshi
217 Paint
231 AIDL
241 JCodec
243 Okio
255 Looper
  ↑ ↓ to navigate     ↵ to select     Esc to close