Proguard and Android :(?

I don't think there is a need to add rt. Jar to your libs. You need to make sure you are referencing it properly in your proguard script.

Take a look here for an example. This line in section 2 is the money maker.

Up vote 1 down vote favorite 1 share g+ share fb share tw.

I am trying to run Proguard on my Android app and running into issues. I am using SpongyCastle jar (copy and past of full bouncy castle with package renamed so it does not conflict with androids bouncy castle built in version) When running proguard I see the following How do I fix this? Add rt.

Jar to my libs? The whole point of proguard is to shrink the code, but I keep adding jars to get around these issues where proguard complains it cannot find a class! Am I missing something?

Proguard Warning: org.spongycastle. X509.util. LDAPStoreHelper: can't find referenced class javax.naming.directory.

InitialDirContext proguard Warning: org.spongycastle. X509.util. LDAPStoreHelper: can't find referenced class javax.naming.directory.

InitialDirContext proguard Warning: org.spongycastle. X509.util. LDAPStoreHelper: can't find referenced class javax.naming.directory.

SearchControls proguard Warning: org.spongycastle. X509.util. LDAPStoreHelper: can't find referenced class javax.naming.directory.

SearchControls proguard Warning: org.spongycastle. X509.util. LDAPStoreHelper: can't find referenced class javax.naming.directory.

SearchControls proguard Warning: org.spongycastle. X509.util. LDAPStoreHelper: can't find referenced class javax.naming.directory.

SearchControls proguard Warning: org.spongycastle. X509.util. LDAPStoreHelper: can't find referenced class javax.naming.directory.

SearchControls proguard Warning: org.spongycastle. X509.util. LDAPStoreHelper: can't find referenced class javax.naming.directory.

DirContext proguard Warning: org.spongycastle. X509.util. LDAPStoreHelper: can't find referenced class javax.naming.

NamingEnumeration proguard Warning: org.spongycastle. X509.util. LDAPStoreHelper: can't find referenced class javax.naming.

NamingEnumeration proguard Warning: org.spongycastle. X509.util. LDAPStoreHelper: can't find referenced class javax.naming.directory.

SearchResult proguard Warning: org.spongycastle. X509.util. LDAPStoreHelper: can't find referenced class javax.naming.directory.

SearchResult proguard Warning: org.spongycastle. X509.util. LDAPStoreHelper: can't find referenced class javax.naming.directory.

Attributes proguard Warning: org.spongycastle. X509.util. LDAPStoreHelper: can't find referenced class javax.naming.directory.

Attribute proguard Warning: org.spongycastle. X509.util. LDAPStoreHelper: can't find referenced class javax.naming.directory.

Attribute proguard Warning: org.spongycastle. X509.util. LDAPStoreHelper: can't find referenced class javax.naming.

NamingEnumeration proguard Warning: org.spongycastle. X509.util. LDAPStoreHelper: can't find referenced class javax.naming.directory.

DirContext proguard Warning: org.spongycastle. X509.util. LDAPStoreHelper: can't find referenced class javax.naming.

NamingException proguard Warning: org.spongycastle. X509.util. LDAPStoreHelper: can't find referenced class javax.naming.directory.

DirContext proguard Warning: org.spongycastle. X509.util. LDAPStoreHelper: can't find referenced class javax.naming.

NamingEnumeration proguard Warning: org.spongycastle. X509.util. LDAPStoreHelper: can't find referenced class javax.naming.directory.

Attributes proguard Warning: org.spongycastle. X509.util. LDAPStoreHelper: can't find referenced class javax.naming.directory.

DirContext proguard Warning: org.spongycastle. X509.util. LDAPStoreHelper: can't find referenced class javax.naming.directory.

DirContext proguard Warning: org.spongycastle. X509.util. LDAPStoreHelper: can't find referenced class javax.naming.directory.

SearchResult proguard Warning: org.spongycastle. X509.util. LDAPStoreHelper: can't find referenced class javax.naming.

NamingEnumeration proguard Warning: org.spongycastle. X509.util. LDAPStoreHelper: can't find referenced class javax.naming.directory.

SearchControls proguard Warning: org.spongycastle. X509.util. LDAPStoreHelper: can't find referenced class javax.naming.

NamingEnumeration proguard Warning: org.spongycastle. X509.util. LDAPStoreHelper: can't find referenced class javax.naming.

NamingException proguard Warning: org.spongycastle. X509.util. LDAPStoreHelper: can't find referenced class javax.naming.directory.

DirContext proguard Note: the configuration refers to the unknown class 'android.app.backup. BackupAgentHelper' proguard Note: the configuration refers to the unknown class 'com.android.vending.licensing. ILicensingService' proguard Note: there were 2 references to unknown classes.

Proguard You should check your configuration for typos. Proguard Warning: there were 57 unresolved references to classes or interfaces. Proguard You may need to specify additional library jars (using '-libraryjars'), proguard or perhaps the '-dontskipnonpubliclibraryclasses' option.

UILD FAILED :\AndroidSDK\android-sdk_r12-windows\android-sdk-windows\tools\ant\build. Xml:713: Please correct the above warnings first. Android proguard link|improve this question edited Dec 16 '11 at 22:33brendan9,89221747 asked Dec 16 '11 at 22:32user964283536 50% accept rate.

This seems like a problem with importing the standard java libraries in android... – SuperTron Dec 16 '11 at 22:36 I used android update project --path . To generate the build. Xml as the project was created sometime ago and I haven't made any changes – user964283 Dec 16 '11 at 22:43.

I don't think there is a need to add rt. Jar to your libs. You need to make sure you are referencing it properly in your proguard script.

Take a look here for an example. This line in section 2 is the money maker: -libraryjars ${java. Home}/lib/rt.

Jar Although, that syntax changes if you use the xml notation for proguard. If you post the part of the ant script that is responsible I can try to be of more assistance. Hope this helps!

That worked! Thanks – user964283 Dec 17 '11 at 0:02.

Add the following, -dontwarn javax.naming. ** , to your Proguard configuration. They are just warnings, and ignoring them shouldn't be an issue.

This also works, thanks – user964283 Dec 17 '11 at 0:07 1 This is the officially recommended solution. The naming package is missing on Android, but apparently this is not causing any problems. – Eric Lafortune Dec 18 '11 at 0:39.

Add the following, -dontwarn javax.naming. ** , to your Proguard configuration.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions