Unable to build a release build in Kotlin

后端 未结 2 1724
既然无缘
既然无缘 2021-02-19 04:08

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

         


        
2条回答
  •  执笔经年
    2021-02-19 04:19

    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.

提交回复
热议问题