socialauth-android:导出apk时出现proguard错误

时间:2013-06-11 21:35:27

标签: android proguard socialauth

使用socialauth-android,当我尝试导出我的项目时,我收到以下警告:

    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)

有人可以帮忙吗?

2 个答案:

答案 0 :(得分:6)

问题已经消失,使用这个程序cfg:

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

答案 1 :(得分:0)

你的libs中是否直接有罐子?或者你通过maven得到他们?你在运行哪个sdk版本?

如果在编译时添加jar,它可能不会包含在proguard处理中。在预建目标运行后,罐子必须到位。