android-Proguard-找不到任何超级类

android-Proguard-找不到任何超级类,第1张

概述我收到此错误:Unexpectederrorwhileperformingpartialevaluation:Class=[org/apache/log4j/chainsaw/Main]Method=[<init>()V]Exception=[java.lang.IllegalArgumentException](Can'tfindanysuperclassesof[org/apache/log4j/chains

我收到此错误:

Unexpected error while performing partial evaluation:Class       = [org/apache/log4j/chainsaw/Main]Method      = [<init>()V]Exception   = [java.lang.IllegalArgumentException] (Can't find any super classes of [org/apache/log4j/chainsaw/LoadXMLAction] (not even immediate super class [javax/swing/AbstractAction]))Error: Can't find any super classes of [org/apache/log4j/chainsaw/LoadXMLAction] (not even immediate super class [javax/swing/AbstractAction])

我的proguard配置的一部分:

-dontwarn javax.jms.**-dontwarn com.sun.jdmk.comm.**-dontwarn androID.support.v4.**-dontwarn com.Google.API.clIEnt.GoogleAPIs.extensions.**-dontwarn org.apache.harmony.**-dontwarn com.sun.**-dontwarn org.simpleframework.**-dontwarn com.Google.androID.gms.**-dontwarn org.apache.log4j.lf5.vIEwer.**-dontwarn java.beans.**-dontwarn org.apache.log4j.**-libraryjars 'D:\Workspace\androID\libs\acra-4.5.0.jar'-libraryjars 'D:\Workspace\androID\libs\activation.jar'-libraryjars 'D:\Workspace\androID\libs\additionnal.jar'-libraryjars 'D:\Workspace\androID\libs\androID-logging-log4j-1.0.3.jar'-libraryjars 'D:\Workspace\androID\libs\androID-support-v4.jar'-libraryjars 'D:\Workspace\androID\libs\annotations.jar'-libraryjars 'D:\Workspace\androID\libs\Google-API-clIEnt-androID-1.12.0-beta.jar'-libraryjars 'D:\Workspace\androID\libs\jtar-1.1.jar'-libraryjars 'D:\Workspace\androID\libs\log4j-1.2.15.jar'-libraryjars 'D:\Workspace\androID\libs\mail.jar'-libraryjars 'D:\Workspace\androID\libs\simple-xml-2.6.9.jar'

那里有log4j的库,那么可能是什么问题?

更新

正如我发现的那样,在优化过程中会出现问题.
收缩和混淆正在起作用.

解决方法:

对于需要在AndroID上使用Log4J的快速解决方案的用户,Krivers的更新实际上是一个提示:在ProGuard配置中设置-dontoptimize将关闭优化,从而避免出现错误(尽管这仅应视为解决方法).

实际上,AndroID Tools Project网站也有suggested to turn off ProGuard optimization:

Dalvik performs many of its own optimizations, and some of the optimizations performed by ProGuard are incompatible with Dalvik, so to avoID hard-to-figure-out BUGs (and because the net performance gain is usually small), the default configuration turns off optimization.

总结

以上是内存溢出为你收集整理的android-Proguard-找不到任何超级类全部内容,希望文章能够帮你解决android-Proguard-找不到任何超级类所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/1074845.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-26
下一篇2022-05-26

发表评论

登录后才能评论

评论列表(0条)

    保存