AndroidStudio 3.0 / Android Gradle plugin 3.0
you need to use the hex code directly not referring to a resource.