Pregunta

Using socialauth-android, when I try to export my project I get these warnings:

    Warning: org.brickred.socialauth.util.SocialAuthUtil: can't find referenced class javax.servlet.http.HttpServletRequest
     Warning: there were 111 unresolved references to classes or interfaces.
              You may need to add missing library jars or update their versions.
              If your code works fine without the missing classes, you can suppress
              the warnings with '-dontwarn' options.
     Warning: there were 140 unresolved references to program class members.
              Your input classes appear to be inconsistent.
              You may need to recompile the code or update the library versions.
              Alternatively, you may have to specify the option 
              '-dontskipnonpubliclibraryclassmembers'.
     java.io.IOException: Please correct the above warnings first.
        at proguard.Initializer.execute(Initializer.java:330)
        at proguard.ProGuard.initialize(ProGuard.java:212)
        at proguard.ProGuard.execute(ProGuard.java:87)
        at proguard.ProGuard.main(ProGuard.java:484)

Could someone help?

¿Fue útil?

Solución

Problem is gone using this proguard cfg:

-keep class org.brickred.** { *; } -dontwarn org.brickred.**

Otros consejos

Do you have the jars directly in your libs? Or are you getting them through maven? Which sdk version are you running?

If you add jars in at compile time, it might not get included in proguard processing. The jars has to be in place after pre-build target is ran.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top