title: How to generate buildConfigField with String type
body: <p>In my <code>Android Studio</code> project there are two <code>build configuration</code> with some <code>buildConfigField</code>:</p>
  
  <pre><code>    buildTypes {
      def SERVER_URL = "SERVER_URL"
      def APP_VERSION = "APP_VERSION"
  
      debug {
          buildConfigField "String", SERVER_URL, "http://dev.myserver.com"
          buildConfigField "String", APP_VERSION, "0.0.1"
      }
  
      release {
          buildConfigField "String", SERVER_URL, "https://myserver.com"
          buildConfigField "String", APP_VERSION, "0.0.1"
  
          minifyEnabled false
          proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
      }
  }
  </code></pre>
  
  <p>I am getting and error as follows:</p>
  
  <pre><code>/path/to/generated/BuildConfig.java
      Error:(14, 47) error: ';' expected
      Error:(15, 47) error: ';' expected
  </code></pre>
  
  <p>the generated <code>BuildConfig.java</code> is as follows:</p>
  
  <pre><code>public final class BuildConfig {
      public static final boolean DEBUG = Boolean.parseBoolean("true");
      public static final String APPLICATION_ID = "com.mycuteoffice.mcoapp";
      public static final String BUILD_TYPE = "debug";
      public static final String FLAVOR = "";
      public static final int VERSION_CODE = 1;
      public static final String VERSION_NAME = "1.0";
      // Fields from build type: debug
      public static final String APP_VERSION = 0.0.1;
      public static final String SERVER_URL = http://dev.mycuteoffice.com;
  }
  </code></pre>
  
  <p>I think the <code>APP_VERSION</code> and <code>SERVER_URL</code> are not getting generated properly as being String type they do not have quotes. </p>
  
  <p>I am not sure why it is being generated in such a way. Please let me know how can I resolve this issues.  </p>