Android proguard issues for release

后端 未结 2 1698
傲寒
傲寒 2021-01-18 19:48

I\'m able to create builds for my android app, but when I turn on proguard i\'m getting numerouos warnings, and then the build fails. The warnings are like the ones below:

相关标签:
2条回答
  • 2021-01-18 20:06

    Your libraries contain duplicates of the android.http classes, which are already present in the Android runtime. This may cause conflicts. You should remove the duplicate libraries from your project.

    See the ProGuard manual > Troubleshooting > Warning: library class ... depends on program class ...

    0 讨论(0)
  • 2021-01-18 20:19

    inspect the jars , creating a packages list in libs you are using.

    Then try adding following for those packages in the list in your proguard config file:

    -dontwarn org.codehaus.jackson.**
    
    ...
    
    -keep        class org.codehaus.jackson.** { *; }
    
    0 讨论(0)
提交回复
热议问题