Android Proguard Duplicate Definition

后端 未结 2 2021
一生所求
一生所求 2020-12-11 15:54

I\'m attempting to add a 3rd party library (JmDNS) to my Android project.

I created a folder \'libs\' under the base project directory, and dropped the jar file in

2条回答
  •  萌比男神i
    2020-12-11 16:57

    Fixed this by moving the 3rd party libraries to another directory, in my case 'lib'. Then added

    -injars lib/jmdns.jar 
    

    to the proguard.cfg file.

    If the 3rd party lbs are included in the 'libs' folder, then they are processed twice.

提交回复
热议问题