문제

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?

도움이 되었습니까?

해결책

Problem is gone using this proguard cfg:

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

다른 팁

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top