Is it possible to use proguard in debug mode?

前端 未结 5 1025
时光取名叫无心
时光取名叫无心 2020-12-01 10:26

In my android app, i want to test some features with proguard on.

I don\'t need to really \"debug\" it, but i want proguard to run when i hit run in eclipse. I don\'

5条回答
  •  不思量自难忘°
    2020-12-01 10:39

    Regarding custom Ant builds (and based on Victor's answer), adding the following to my build.xml file works for me:

    
        
        
    
        
        
    
    

    Notice that I had to override (actually pre-set) the out.dex.jar.input.ref; otherwise, the later running of dx will attempt to merge non-disjoint jars and throw the DexException: Multiple dex files define Xxx.

提交回复
热议问题