ShouldNotReachhere classFileParser ANDROID

发布于 2024-09-03 05:50:19 字数 284 浏览 7 评论 0原文

知道如何解决这个问题吗?我正在使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(8

反差帅 2024-09-10 05:50:19

使用“运行配置”并确保选择 Android 应用程序。

Use "Run configurations" and make sure you select the Android application.

谜兔 2024-09-10 05:50:19

我通过

  • 退出 eclipse
  • 解决了这个问题删除项目中的 bingen 目录
  • 启动 eclipse
  • 重新构建项目

I resolved this by

  • Quit eclipse
  • Delete the bin and gen directories in your project
  • Start eclipse
  • Rebuild your project
小瓶盖 2024-09-10 05:50:19

您在运行 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

酷遇一生 2024-09-10 05:50:19

我遇到了这个错误,并认为它与我的 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.

不寐倦长更 2024-09-10 05:50:19

我从未见过该错误,但您可以尝试标准修复:更新或重新安装 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...

左耳近心 2024-09-10 05:50:19

我也发生过,但似乎与依赖其他库项目的项目有关。如果我在库项目中按 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.

物价感观 2024-09-10 05:50:19

嗯...我认为问题是因为你正在使用 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.

纸伞微斜 2024-09-10 05:50:19

您可能已将启动器设置为 Eclipse JUnit Launcher。如果是这样,您需要更改为 Android JUnit Test Launcher。

要执行此操作,

  1. 代码窗口,
  2. 作为
  3. 运行配置运行”的
  4. 请右键单击弹出窗口底部的“ 您将看到一条文本,内容为“使用 Eclipse JUnit Launcher”,并且其右侧有一个文本链接作为选择其他
  5. 单击选择其他并更改为Android JUnit Test Launcher
  6. 运行

you might had set launcher as Eclipse JUnit Launcher. if so you need to change to Android JUnit Test Launcher.

to do this

  1. right click on the code window
  2. run as
  3. run configurations
  4. at the bottom of the popup window you'll see a text which is saying "Using Eclipse JUnit Launcher" and a link at right of it texted as select other
  5. click on select other and change to Android JUnit Test Launcher
  6. run
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文