我完全被这个问题打败了,我看到了一些类似的问题,但没有任何帮助。我似乎无法运行几天前运行良好的应用程序。
我得到了可怕的VerifyError,并希望有人能够找出我哪里出错了。
这是我的项目构建路径的屏幕截图
图书馆
订购和出口
这是我的完整堆栈跟踪
03-20 00:01:07.176: E/AndroidRuntime(13968): FATAL EXCEPTION: main
03-20 00:01:07.176: E/AndroidRuntime(13968): java.lang.VerifyError: com/snrblabs/bishop/Main
03-20 00:01:07.176: E/AndroidRuntime(13968): at java.lang.Class.newInstanceImpl(Native Method)
03-20 00:01:07.176: E/AndroidRuntime(13968): at java.lang.Class.newInstance(Class.java:1319)
03-20 00:01:07.176: E/AndroidRuntime(13968): at android.app.Instrumentation.newActivity(Instrumentation.java:1054)
03-20 00:01:07.176: E/AndroidRuntime(13968): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2097)
03-20 00:01:07.176: E/AndroidRuntime(13968): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
03-20 00:01:07.176: E/AndroidRuntime(13968): at android.app.ActivityThread.access$600(ActivityThread.java:141)
03-20 00:01:07.176: E/AndroidRuntime(13968): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
03-20 00:01:07.176: E/AndroidRuntime(13968): at android.os.Handler.dispatchMessage(Handler.java:99)
03-20 00:01:07.176: E/AndroidRuntime(13968): at android.os.Looper.loop(Looper.java:137)
03-20 00:01:07.176: E/AndroidRuntime(13968): at android.app.ActivityThread.main(ActivityThread.java:5041)
03-20 00:01:07.176: E/AndroidRuntime(13968): at java.lang.reflect.Method.invokeNative(Native Method)
03-20 00:01:07.176: E/AndroidRuntime(13968): at java.lang.reflect.Method.invoke(Method.java:511)
03-20 00:01:07.176: E/AndroidRuntime(13968): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
03-20 00:01:07.176: E/AndroidRuntime(13968): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
03-20 00:01:07.176: E/AndroidRuntime(13968): at dalvik.system.NativeStart.main(Native Method)
这是我的类路径
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry kind="lib" path="C:/Sources/Third Party Libraries/dom4j-1.6.1.jar"/>
<classpathentry kind="lib" path="C:/Sources/Third Party Libraries/google-voice-java-1.10-java6.jar"/>
<classpathentry kind="lib" path="C:/Sources/Third Party Libraries/jaxen-1.1.3.jar"/>
<classpathentry kind="lib" path="C:/Sources/Third Party Libraries/json.jar"/>
<classpathentry kind="lib" path="C:/Sources/Third Party Libraries/jtidy.jar"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
编辑
所以出现这个问题是因为我正在尝试升级 google-voice-java 库,
当我使用旧库恢复到旧版本时,我很好。但是,当我尝试添加最新的 google-voice-java 库时,我收到了同样的错误。
是的,我清理并构建了我的项目