Proguard seeming to remove an entire packages that are included in the path

前端 未结 3 1343
小鲜肉
小鲜肉 2021-01-11 10:50

I use Proguard to obfuscate my code, and make it smaller. I build using Eclipse, and have for some time. I\'ve recently had a build that works great in the debug version, wh

3条回答
  •  孤独总比滥情好
    2021-01-11 11:49

    I occasionally receive reports about missing classes when building with ProGuard in Eclipse, in Windows. The cause is a mystery so far. ProGuard is run as a separate script/java process inside Eclipse. The problem happens spuriously. I am guessing the compiled class files aren't flushed to the file system in time for ProGuard to read them. You could try adding a pause or just list the files in the ProGuard script android-sdk/tools/proguard/bin/proguard.bat.

    I have not received any similar reports about Ant or Gradle, so those may be practical alternatives.

    (I am the developer of ProGuard)

提交回复
热议问题