title: How can I access a BuildConfig value in my AndroidManifest.xml file?
body: <p>Is it possible to access a BuildConfig value from AndroidManifest.xml?</p>
  
  <p>In my build.gradle file, I have:</p>
  
  <pre><code>defaultConfig {
      applicationId "com.compagny.product"
      minSdkVersion 16
      targetSdkVersion 21
      versionCode 1
      versionName "1.0"
  
      // Facebook app id
      buildConfigField "long", "FACEBOOK_APP_ID", FACEBOOK_APP_ID
  }
  </code></pre>
  
  <p><code>FACEBOOK_APP_ID</code> is defined in my gradle.properties files:</p>
  
  <pre><code># Facebook identifier (app ID)
  FACEBOOK_APP_ID=XXXXXXXXXX
  </code></pre>
  
  <p>To use Facebook connect in my app, I must add this line to my AndroidManifest.xml:</p>
  
  <pre><code>&lt;meta-data android:name="com.facebook.sdk.ApplicationId" android:value="@string/applicationId"/&gt; 
  </code></pre>
  
  <p>I want to replace <code>@string/applicationId</code> by the BuildConfig field <code>FACEBOOK_APP_ID</code> defined in gradle, like this:</p>
  
  <pre><code>&lt;meta-data android:name="com.facebook.sdk.ApplicationId" android:value="FACEBOOK_APP_ID"/&gt; 
  </code></pre>
  
  <p>Is that possible using BuildConfig? If not, how can I achieve this?</p>