For me it was isShrinkResources = true
for release config, which removed 'unused' (used via Resources.getIdentifier) dimension resources provided by com.intuit.sdp
package.
Funny is that what broke the release build is build-script migrating from groovy to kotlin.