resValue gradle error: Unsupported type “String” in “generated.xml”
I solved adding the resources also in the defaultConfig block. For you it would be something like: android { defaultConfig { resValue “string”, “RES_FOO”, “RES FOO RELEASE” } buildTypes { debug{ buildConfigField “String”, “FOO”, “\”FOO DEBUG\”” resValue “string”, “RES_FOO”, “RES FOO DEBUG” } release { buildConfigField “String”, “FOO”, “\”FOO RELEASE\”” resValue “string”, “RES_FOO”, “RES FOO … Read more