我在 android 文件中配置混淆器:'proguard-project.txt'。我遇到了一些麻烦,我读到我需要删除:
js.jar
文件中的 org.mozilla.javascript.tools
包。我怎样才能删除它?
我的错误是这样的:
[2013-08-31 13:05:27 -] Warning: org.mozilla.javascript.tools.debugger.ContextWindow: can't find superclass or interface javax.swing.JPanel
[2013-08-31 13:05:27 -] Warning: org.mozilla.javascript.tools.debugger.ContextWindow: can't find superclass or interface java.awt.event.ActionListener
[2013-08-31 13:05:27 -] Warning: org.mozilla.javascript.tools.debugger.ContextWindow$1: can't find superclass or interface java.awt.event.ComponentListener
[2013-08-31 13:05:27 -] Warning: org.mozilla.javascript.tools.debugger.ContextWindow$1$1: can't find superclass or interface java.awt.event.WindowAdapter
[2013-08-31 13:05:27 -] Warning: org.mozilla.javascript.tools.debugger.ContextWindow$2: can't find superclass or interface java.awt.event.ContainerListener
[2013-08-31 13:05:27 -] Warning: org.mozilla.javascript.tools.debugger.EvalTextArea: can't find superclass or interface javax.swing.JTextArea
在我尝试对这个包使用 -dontwarn 之前
,但是当我使用它时,eclipse 显示错误:“out heap space”
或者如果你有其他解决方案,请分享给我。
谢谢。
最佳答案
选项 -dontwarn java.awt.**,javax.swing.**
应该适合这种情况。
Eclipse 中的错误“堆空间不足”可能与这些警告无关。您应该尝试在 Eclipse 主目录的 eclipse.ini
中为 Eclipse 提供更大的堆,例如-Xmx1024m
。
关于java - Android 中的 Proguard,删除 org.mozilla.javascript.tools,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18551822/