简体   繁体   English

Eclipse无法构建android项目

[英]Eclipse fails to build android project

Background: this problem occured after an update through the android sdk Manager eclipse plugin. 背景:通过android sdk Manager eclipse插件进行更新后,发生了此问题。

Currently, when i try to build any android project, this error occurs. 当前,当我尝试构建任何android项目时,都会发生此错误。 在此处输入图片说明

THe information i gathered so far, is that this is a java related issue, as i'm trying to compile newer version code (version 52.0 stands for java 8) and run it in an older one. 到目前为止,我收集的信息是这是与Java有关的问题,因为我正在尝试编译较新的版本代码(版本52.0代表Java 8)并在较旧的版本中运行它。 However, most of the solutions didn't work out. 但是,大多数解决方案都无法解决。

Here are the compile setting for an android project : 这是一个android项目的编译设置:

在此处输入图片说明

Here are settings from the java compiler in Eclispe: 这是Eclispe中Java编译器的设置:

在此处输入图片说明

Here are the installed JREs 这是已安装的JRE 在此处输入图片说明

Finally, installed packets from the Android SDK: 最后,从Android SDK安装了数据包:

在此处输入图片说明

I've removed the packets for API 23, but with no luck. 我已经删除了API 23的数据包,但是没有运气。 Could it be that Android tools are causing trouble, since the SKD doesn't support the java version (52)? 由于SKD不支持Java版本(52),可能是Android工具引起了麻烦吗?

Problem was with JDK/JRE. 问题出在JDK / JRE。 They were installed separately. 它们是分开安装的。 Deleted them and installed from a bundle. 删除它们并从捆绑软件中安装。 Although they were the same version, project building kept on crashing. 尽管它们是相同的版本,但是项目建设一直在崩溃。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM