gradle-experimental resValue
<p>I want to set my appName per flavor in Android Studio. I use com.android.tools.build:gradle-experimental:0.4.0 plugin so I can`t use standard gradle/groovy syntax.</p>

<p>I have found a solution here: <a href="https://stackoverflow.com/questions/22607020/how-to-change-android-app-name-in-the-build-gradle-file">how to change android app name in the build gradle file</a></p>

<p>However with all my experimentations I just can`t figure out the right syntax for resValue field.</p>

<p>I have tried something like this:</p>

<pre><code>buildConfigFields.resValue = {
            create() {
                type = "String"
                name = "appName"
                value = "Game_Name"
            }
        }
</code></pre>

<p>But no luck. </p>