简体   繁体   English

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

[英]socialauth-android: proguard errors when exporting apk

Using socialauth-android, when I try to export my project I get these warnings: 使用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)

Could someone help? 有人可以帮忙吗?

使用此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? 您正在运行哪个SDK版本?

If you add jars in at compile time, it might not get included in proguard processing. 如果在编译时添加jar,则可能不会将其包含在proguard处理中。 The jars has to be in place after pre-build target is ran. 运行预构建目标后,必须将罐子放置到位。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM