title: "Missing name attribute" error when specifying permission name as resValue.
body: <p>I have a couple of different Gradle buildTypes and am trying to specify the Google C2D_MESSAGE permission names individually for each of these buildTypes because I can't have the different apps installed on my phone because they share a permission name. But I'm running into a "Missing name attribute" error. </p>
  
  <p>So I'm doing something like this in my build.gradle: </p>
  
  <pre><code>    buildType2 {
          applicationIdSuffix '.suffix1'
          ...
          resValue 'string', 'gcmPermission', "com.mypackage.suffix1.permission.C2D_MESSAGE"
      }
  </code></pre>
  
  <p>In my AndroidManifest.xml: </p>
  
  <pre><code>&lt;permission
      android:name="@string/gcmPermission"
      android:protectionLevel="signature" /&gt;
  
  &lt;uses-permission android:name="@string/gcmPermission" /&gt;
  </code></pre>
  
  <p>However, I run into the following error when building:</p>
  
  <pre><code>AndroidManifest.xml:19: missing name attribute in element &lt;permission&gt;.
  </code></pre>