ShouldNotReachhere classFileParser ANDROID

后端 未结 8 1690
心在旅途
心在旅途 2020-12-10 10:41

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 t         


        
相关标签:
8条回答
  • 2020-12-10 11:07

    I've never seen that error, but you can try the standard fixes: update or reinstall your JRE and the Android SDK. Might help...

    0 讨论(0)
  • 2020-12-10 11:18

    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.

    0 讨论(0)
  • 2020-12-10 11:18

    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.

    0 讨论(0)
  • 2020-12-10 11:19

    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.

    0 讨论(0)
  • 2020-12-10 11:22

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

    0 讨论(0)
  • 2020-12-10 11:26

    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

    0 讨论(0)
提交回复
热议问题