gpt4 book ai didi

java - VFY : unable to find class referenced in signature (Ljavax/xml/bind/JAXBElement;)

转载 作者:行者123 更新时间:2023-11-30 02:49:50 25 4
gpt4 key购买 nike

我遇到了这个奇怪的错误,我不知道是什么原因造成的...完整的 LogCat:

06-24 13:15:07.878: W/dalvikvm(20470): VFY: unable to find class referenced in signature (Ljavax/xml/bind/JAXBElement;)
06-24 13:15:07.880: W/dalvikvm(20470): VFY: unable to find class referenced in signature (Ljavax/xml/bind/JAXBElement;)
06-24 13:15:07.880: W/dalvikvm(20470): VFY: unable to resolve exception class 1628 (Ljavax/xml/bind/JAXBException;)
06-24 13:15:07.880: W/dalvikvm(20470): VFY: unable to find exception handler at addr 0x7c
06-24 13:15:07.880: W/dalvikvm(20470): VFY: rejected Lde/not/important/services/SenderReceiverThread;.run ()V
06-24 13:15:07.880: W/dalvikvm(20470): VFY: rejecting opcode 0x0d at 0x007c
06-24 13:15:07.880: W/dalvikvm(20470): VFY: rejected Lde/not/important/services/SenderReceiverThread;.run ()V
06-24 13:15:07.880: W/dalvikvm(20470): Verifier rejected class Lde/not/important/services/SenderReceiverThread;
06-24 13:15:07.881: W/dalvikvm(20470): threadid=11: thread exiting with uncaught exception (group=0x416b2d40)
06-24 13:15:07.882: E/AndroidRuntime(20470): FATAL EXCEPTION: AsyncTask #1
06-24 13:15:07.882: E/AndroidRuntime(20470): Process: de.not.important, PID: 20470
06-24 13:15:07.882: E/AndroidRuntime(20470): java.lang.RuntimeException: An error occured while executing doInBackground()
06-24 13:15:07.882: E/AndroidRuntime(20470): at android.os.AsyncTask$3.done(AsyncTask.java:300)
06-24 13:15:07.882: E/AndroidRuntime(20470): at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355)
06-24 13:15:07.882: E/AndroidRuntime(20470): at java.util.concurrent.FutureTask.setException(FutureTask.java:222)
06-24 13:15:07.882: E/AndroidRuntime(20470): at java.util.concurrent.FutureTask.run(FutureTask.java:242)
06-24 13:15:07.882: E/AndroidRuntime(20470): at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
06-24 13:15:07.882: E/AndroidRuntime(20470): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
06-24 13:15:07.882: E/AndroidRuntime(20470): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
06-24 13:15:07.882: E/AndroidRuntime(20470): at java.lang.Thread.run(Thread.java:841)
06-24 13:15:07.882: E/AndroidRuntime(20470): Caused by: java.lang.VerifyError: de/not/important/services/SenderReceiverThread
06-24 13:15:07.882: E/AndroidRuntime(20470): at de.not.important.services.ServerConnection.connect(ServerConnection.java:79)
06-24 13:15:07.882: E/AndroidRuntime(20470): at de.not.important.iv.services.ServerConnection$ServerConnectionTask.doInBackground(ServerConnection.java:97)
06-24 13:15:07.882: E/AndroidRuntime(20470): at de.not.important.iv.services.ServerConnection$ServerConnectionTask.doInBackground(ServerConnection.java:1)
06-24 13:15:07.882: E/AndroidRuntime(20470): at android.os.AsyncTask$2.call(AsyncTask.java:288)
06-24 13:15:07.882: E/AndroidRuntime(20470): at java.util.concurrent.FutureTask.run(FutureTask.java:237)
06-24 13:15:07.882: E/AndroidRuntime(20470): ... 4 more

如果我删除以下导入,该项目工作正常:

import javax.xml.bind.JAXBElement;
import javax.xml.bind.JAXBException;

一旦我调用导入 JAXB 内容的类的构造函数,就会发生错误。

谷歌搜索错误告诉我,我的导入订单可能有问题,或者我没有检查我正在使用的所有 JAR。这很奇怪,因为 afaik JAXB 集成在 SDK 中并且不需要任何库。无论如何,我使用了导入命令并检查了我能找到的所有 JAR——没有结果。

由于信誉原因,我无法发布我的 BuildPath 库以及订购和导出的屏幕截图,但这里有一个链接: http://postimg.org/image/5bhohcs6b/

有什么建议可能是错误的吗?我现在正在折磨我的头几个小时...... :(

最佳答案

JAXB 不是 Android VM 的一部分(记住 Dalvik 不是标准的 Java SE 或 Java ME VM)。 AFAIK 默认情况下您不能只在 javax 包中添加类,但我相信您可以执行一些步骤来完成此操作。

关于java - VFY : unable to find class referenced in signature (Ljavax/xml/bind/JAXBElement;),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24385553/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com