Android Gradle for Android Adding product flavor-specific resources

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!


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.

Got any Android Question?