2

使用 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)

有人可以帮忙吗?

4

2 回答 2

6

使用这个 proguard cfg 问题就解决了:

-keep class org.brickred.** { *; } -dontwarn org.brickred.**
于 2013-06-13T14:04:33.153 回答
0

你的库中有直接的罐子吗?或者你让他们通过maven?您正在运行哪个 sdk 版本?

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

于 2013-06-11T21:46:12.307 回答