ShouldNotReachhere classFileParser ANDROID
知道如何解决这个问题吗?我正在使用 Eclipse,即使我创建一个新的 android 项目,它似乎也会发生。 :(
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (classFileParser.cpp:3174), pid=3944, tid=3256
# Error: ShouldNotReachHere()
#
# JRE version: 6.0_18-b07
Any idea how to fix this issue? I'm using Eclipse and it seems to occur even when I create a new android project. :(
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (classFileParser.cpp:3174), pid=3944, tid=3256
# Error: ShouldNotReachHere()
#
# JRE version: 6.0_18-b07
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(8)
使用“运行配置”并确保选择 Android 应用程序。
Use "Run configurations" and make sure you select the Android application.
我通过
I resolved this by
您在运行 JUnit 测试时遇到此错误吗?如果是这样,这似乎是我的错误,但找到了解决方案。请参阅我的回答此处
Are you getting this error when running JUnit tests? If so, it seems like the fault I had but found a solution to. See my answer here
我遇到了这个错误,并认为它与我的 JRE 有关,因为文档明确指出了 1.5 或 1.6,但似乎有一个简单的步骤被我(以及其他人)略过。您必须从运行配置中排除 Android Bootstrap。转到“编辑运行配置”并选择 DatabaseConfigUtil 运行配置,然后转到“类路径”选项卡并删除“Android Bootstrap”。
非常感谢这个有用的帖子:https://groups.google。 com/forum/#!topic/ormlite-android/Qaw4JD2KJ1Q
编辑:我刚刚意识到,虽然我的问题是相同的,但我们有不同的目标。在您的情况下,您尝试将 Android 项目作为 Java 应用程序运行,但是我的问题是尝试在 Android 项目中运行 ORMLite 生成器 Java 应用程序,并且它会自动将 android 引导程序添加到类路径中。因此,在问题中提到的情况下,只需将其作为 Android 项目而不是 Java 应用程序运行就可以解决此问题。
I ran across this error and thought it had something to do with my JRE since the documents specifically state 1.5 or 1.6, however it seems that there is one easy step that I (and it appears others) skimmed over. You must exclude the Android Bootstrap from the run configuration. Go to "Edit Run Configurations" and select the DatabaseConfigUtil run configuration and then go to the "Classpath" tab and remove the "Android Bootstrap".
A big thanks goes to this useful thread: https://groups.google.com/forum/#!topic/ormlite-android/Qaw4JD2KJ1Q
EDIT: I just realized that while my problem was the same, we had different goals. In your case you were trying to run an Android Project as a Java Application, however my issue was trying to run the ORMLite generator Java Application within an Android Project and it was automatically adding the android bootstrap to the classpath. So in the case mentioned in the question simply running it as an Android project instead of a Java Application should solve this issue.
我从未见过该错误,但您可以尝试标准修复:更新或重新安装 JRE 和 Android SDK。可能有帮助...
I've never seen that error, but you can try the standard fixes: update or reinstall your JRE and the Android SDK. Might help...
我也发生过,但似乎与依赖其他库项目的项目有关。如果我在库项目中按 F11 重新运行,就会发生这种情况,但当我从应用程序中执行此操作时,不会发生这种情况。我认为当它试图弄清楚如何运行一个库时,它只会感到困惑。所以解决方法很简单,但肯定不是显而易见的。
Happens for me too but seems related to projects that depend on other library projects. This happens if I hit F11 to rerun while in the library project, but not when I do that from the app. I think it just gets confused when it tries to figure out how to run a library. So the workaround is simple enough but sure wasn't obvious to figure out.
嗯...我认为问题是因为你正在使用 android 环境来运行 java 应用程序。可能你在 android 结构中插入 java 代码,它无法“读取”它。
Well...I think the problem is because you are using de android enviroment to run java applications. Probably you insert java code inside android structure and it can not "read" this.
您可能已将启动器设置为 Eclipse JUnit Launcher。如果是这样,您需要更改为 Android JUnit Test Launcher。
要执行此操作,
you might had set launcher as Eclipse JUnit Launcher. if so you need to change to Android JUnit Test Launcher.
to do this