Android SDK for eclipse using Google Play Services Lib: Error “Target runtime jre1.8.0_25 is not defined.”

南楼画角 提交于 2019-12-25 09:42:31

问题


For university, I am working on an android-project, which uses the "Google Play Services Lib". However, my eclipse throws an error, stating, that the "Target runtime jre1.8.0_25 is not defined.". This being a git project, I have not installed/configured the library myself, though for others it seems to work flawlessly. Being not very well versed with eclipse, I have tried to check every reference to the aforementioned jre in the projects settings, though I was out of luck, a quick fix isn't available either.


回答1:


This error occurs to you because developing android does not support JDK 1.8 To solve this problem you need to install JDK 1.7(you might need to uninstall JDK 1.8, but it is for sure that you need JDK 1.7). This will solve your problem.

The last check you need to do is Project > Properties > Java Compiler(here you have to select 1.7 or 1.6)



来源:https://stackoverflow.com/questions/27622370/android-sdk-for-eclipse-using-google-play-services-lib-error-target-runtime-jr

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!