After having converted my Android project to Kotlin I am unable to build a release build, the error appears to be related to Proguard.
I see 155 warnings like
Try to add @Keep annotation to the class in question (e.g. MainActivity) and see if it helps. If it does, it means that minify is renaming some resource, that shouldn't be renamed because some other resource expects it by it's original name.
@Keep