Unable to build a release build in Kotlin

后端 未结 2 1741
既然无缘
既然无缘 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.

    0 讨论(0)
  • 2021-02-19 04:37

    Try to make build without proguard to undestand who is responsible for that issue.

    0 讨论(0)
提交回复
热议问题