[英]Conversion to dalvik format failed with error 1(when adding gnu-crypto.jar) in eclipse
There are a lot of questions similar to this one but I've tried everything and it didn't help. 有很多与此问题类似的问题,但是我已经尝试了所有问题,但没有帮助。
The error is: 错误是:
stack[top0]: type{java.lang.InterruptedException}
...while working on block 01d0
...while working on method handleConfirmation:(Ljavax/security/auth/callback/ConfirmationCallback;)V
...while processing handleConfirmation (Ljavax/security/auth/callback/ConfirmationCallback;)V
...while processing gnu/crypto/auth/callback/AWTCallbackHandler.class
[2012-01-21 15:31:22 - AppName] Dx 1 error; aborting
[2012-01-21 15:31:22 - AppName] Conversion to Dalvik format failed with error 1
This happens only when I try to add external jar for encryption - gnu-crypto.jar. 仅当我尝试添加外部jar进行加密时,才会发生这种情况-gnu-crypto.jar。 What I've tried:
我尝试过的
It appears that there's something wonky with the 2.1.0 release of gnu-crypto. 似乎gnu-crypto的2.1.0版本有些奇怪。 Running dx on it manually produces the error you mentioned.
手动运行dx会产生您提到的错误。
You could try adding the sources for gnu-crypto to your application directly, or use the 2.0.1 release instead. 您可以尝试将gnu-crypto的源直接添加到您的应用程序中,或者改用2.0.1版本。
Make sure you delete all the potentially double reference to jars with similar classes. 确保删除对具有相似类的jar的所有可能的双重引用。 This could happen by referring to different versions of android or having reference to android and jdk or a jre.
通过引用不同版本的android或引用android和jdk或jre可能会发生这种情况。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.