Android的java.lang.VerifyError? [英] Android java.lang.VerifyError?
问题描述
在我的Android应用程序,我总是VerifyErrors!我想不通为什么。每当我包括外部JAR,我总是VerifyErrors当我尝试推出我的应用程序(除了有一次,当我包括Apache的Log4j的。)
In my Android app, I always get VerifyErrors! And I cannot figure out why. Whenever I include a external JAR, I always get VerifyErrors when I try to launch my app (except for once, when I included Apache Log4j.)
我通常解决这个问题采取的库源并将其添加到我的项目,但我试图把的GData客户端库(的http://$c$c.google。 COM / P / gdata的Java的客户端/
)。
I usually get around this by taking the source of the library and adding it to my project, but I am trying to put the GData client library (http://code.google.com/p/gdata-java-client/
).
我能得到这个源,但它的依赖关系(的mail.jar,activation.jar,它的servlet-api.jar文件)我做不到,所以我得到验证错误。我想获得这个问题的根源一劳永逸。我看着在互联网上,但他们似乎都谈不完整的类文件?我不知道。
I can get this in source, but it's dependencies (mail.jar, activation.jar, servlet-api.jar) I cannot, so I get verify errors. I would like to get to the root of this problem once and for all. I looked on the internet, but they all seem to talk about incomplete class files? which I do not know of.
推荐答案
Android使用一个不同的类文件格式。你通过DX工具运行第三方JAR文件附带的Android SDK中?
Android uses a different class file format. Are you running the 3rd party JAR files through the "dx" tool that ships with the Android SDK?
这篇关于Android的java.lang.VerifyError?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!