title: Cannot resolve method Color.valueOf(int)
body: <p>I want to create Color objects from Strings like <code>"#b66c61"</code> and<code>"#33b7c4"</code>.</p>
  
  <p>This is my code:</p>
  
  <pre><code>import android.graphics.Color;
  ......
   String color_string = "#b66c61";
   int color_int = Integer.parseInt(color_string.substring(1, color_string.length()-1));
   Color color = Color.valueOf(color_int);
  </code></pre>
  
  <p>when I run it, I get the errer: <code>Cannot resolve method valueOf(int)</code>
  although I'm sure the method exists : <a href="https://developer.android.com/reference/android/graphics/Color.html" rel="nofollow noreferrer">https://developer.android.com/reference/android/graphics/Color.html</a></p>
  
  <p>any help?</p>