Android Release error: Expected a color resource id (R.color.) but received an RGB integer
<p>I have an application in the market for a year. Last week, I have changed the source code of my app. When I wanted to build the release version Android Studio throws an Error:</p>

<p>"Error: Expected a color resource id (R.color.) but received an RGB integer [ResourceType]"</p>

<p>Color is only used in this part of code and I haven't made ​​any changes in this part:</p>

<pre><code>if (android.os.Build.VERSION.SDK_INT &gt;= 16) {
            rlFlash.setBackground(new ColorDrawable
                    (Color.parseColor(("#86cc55"))));
        }
        else{
            rlFlash.setBackgroundDrawable(new ColorDrawable
                    (Color.parseColor(("#86cc55"))));
        }
</code></pre>

<p>It is so strange that in the Debug version Android studio didn't throw any error and I can build the apk.</p>

<p>Do you know whats happen??</p>

<p>Thanks.</p>