title: Error:(555, 5) error: expected enum but got (raw string) bold
body: <p>I am using custom font style for that created custom xml attributes.already used enum in declared style attributes but still no success. Its seems some messed up and facing the below-mentioned issue.
  Facing this issue: </p>
  
  <p><strong>Error:(555, 5) error: expected enum but got (raw string) bold.</strong></p>
  
  <p>attrs.xml file is
  </p>
  
  <pre><code>&lt;declare-styleable name="CustomTextView"&gt;
      &lt;attr name="font_name" format="string" /&gt;
      &lt;attr name="font_style" format="enum"&gt;
          &lt;enum name="normal" value="0" /&gt;
          &lt;enum name="bold" value="1" /&gt;
          &lt;enum name="italic" value="2" /&gt;
      &lt;/attr&gt;
  &lt;/declare-styleable&gt;
  </code></pre>
  
  <p></p>
  
  <p>I created styles for Textview.</p>
  
  <pre><code>&lt;style name="STextView"&gt;
          &lt;item name="android:textColor"&gt;@color/colorBlack&lt;/item&gt;
          &lt;item name="font_style"&gt;bold&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p>It was working earlier recently updated compile sdk version in build.gradle to 27 and stated facing this issue.</p>