Android Proguard skip external jar

前端 未结 1 1608
轮回少年
轮回少年 2020-12-24 15:07

I tried to use Proguard in my Android project, i setup Proguard using command line \'android update project /path/to/project\' and file proguard.cfg was created in project\'

1条回答
  •  轮回少年
    2020-12-24 15:48

    Your library jars refer to yet more library jars (Mortbay, SLF4J, Apache Commons Logging, Log4j, ...) Adding these jars with extra '-libraryjars' options should solve the problem.

    If you are absolutely sure that your code doesn't use these libraries, you can specify '-ignorewarnings' or '-dontwarn', e.g.

    -dontwarn org.mortbay.**
    -dontwarn org.slf4j.**
    -dontwarn org.apache.log4j.**
    -dontwarn org.apache.commons.logging.**
    -dontwarn org.apache.commons.codec.binary.**
    

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