I have an Android application that has dnsjava.jar in the / libs / directory of the project. Everything is built perfectly and can be packaged in APK (without proguard).
However, when I entered proguard in project.properties (in eclipse), I get the following warnings:
[2013-03-07 14:16:08 - ] Proguard returned with error code 1. See console [2013-03-07 14:16:08 - ] Warning: org.xbill.DNS.spi.DNSJavaNameServiceDescriptor: can't find superclass or interface sun.net.spi.nameservice.NameServiceDescriptor [2013-03-07 14:16:08 - ] Warning: org.xbill.DNS.spi.DNSJavaNameServiceDescriptor: can't find referenced class sun.net.spi.nameservice.NameService [2013-03-07 14:16:08 - ] Warning: org.xbill.DNS.spi.DNSJavaNameServiceDescriptor: can't find referenced class sun.net.spi.nameservice.NameServiceDescriptor [2013-03-07 14:16:08 - ] Warning: org.xbill.DNS.spi.DNSJavaNameServiceDescriptor: can't find referenced class sun.net.spi.nameservice.NameService [2013-03-07 14:16:08 - ] Warning: org.xbill.DNS.spi.DNSJavaNameServiceDescriptor: can't find referenced class sun.net.spi.nameservice.NameService [2013-03-07 14:16:08 - ] You should check if you need to specify additional program jars. [2013-03-07 14:16:08 - ] Warning: there were 5 unresolved references to classes or interfaces. [2013-03-07 14:16:08 - ] You may need to specify additional library jars (using '-libraryjars'). [2013-03-07 14:16:08 - ] java.io.IOException: Please correct the above warnings first. [2013-03-07 14:16:08 - ] at proguard.Initializer.execute(Initializer.java:321)
Using the -keep org.xbill class. ** {*; } in proguard-project.txt doesn't seem to solve this.
source share