Eclipse编译项目时errors occurred during the build.

原创 2018年04月16日 17:32:54

1.在Eclipse运行项目时遇见的这个errors occurred during the build. errors running builder "android package builder" on project xxx. com/android/dx/command/dexer/Main: Unsupported major.minor version 52.0.



JDK版本不一致造成的,指的是高版本的JDK编译的class不能放在低版本的JDK上运行。

不同的JDK版本使用的 major.minor version(主次版本号) 不同,所以会导致这个错误。
JavaSE 8 = 52 (0x34 hex),
JavaSE 7 = 51 (0x33 hex),
JavaSE 6 = 50 (0x32 hex),
JavaSE 5 = 49 (0x31 hex),
J2SE 1.4 = 48 (0x30 hex),
J2SE 1.3 = 47 (0x2F hex),
J2SE 1.2 = 46 (0x2E hex),
J2SE 1.1 = 45 (0x2D hex)
eclipse指定jdk1.8版本。

解决方法就是:

1.安装jdk8,重新配置一下 环境

2.修改一下 Eclipse的 配置文件 Eclipse.ini,

我是用的第一个解决方法,第二我试了一下,对于我的这个不行,估计只适合其中一部分.

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/ZFY11/article/details/79963392

Eclipse中Errors occurred during the build.问题解决方式

错误现象 在Eclipse中保存java文件的时候,系统会出现这个错误,错误信息主要是: Errors occurredduring the build. Errors runningbui...
  • woshismyawei
  • woshismyawei
  • 2014-04-04 11:03:08
  • 5921

android新建程序时出现Errors occurred during the build

新建Android程序时遇见报错如下:后来查阅一些资料都不能解决,google果然很给力,其实最基本的原因就是自己安装了jdk1.7,但是苹果系统ADT不兼容造成的吧 你是不是报这个错。 Erro...
  • zhangzongqin_a5
  • zhangzongqin_a5
  • 2015-06-20 16:52:05
  • 15988

Eclipse提示Errors occurred during the build

今天eclipse一直提示 Errors occurred during the build. 但是项目可以启动不受影响 最后解决问题的方法是      将builder中的javasc...
  • Ouvidia
  • Ouvidia
  • 2012-04-23 14:19:36
  • 38926

android项目编译报错:error occurred during the build

在使用svn从服务器down项目到eclipse的时候,一打开eclipse就报错,提示building workspace error,然后在网上查找了各种方法:汇总一下:1, S...
  • taozi321
  • taozi321
  • 2016-05-27 09:40:17
  • 1435

mac 解决 eclipse 创建 android 项目出现 Errors occurred during the build. Errors running builder 'Android Res

eclipse 创建 android 项目出现 Errors occurred during the build. Errors running builder 'Android Res...
  • u013151336
  • u013151336
  • 2016-01-29 00:26:44
  • 1627

Myeclipse错误:Errors occurred during the build. 解决方法

问题背景:开发中多次遇到此类问题,但是每次都记不住怎么解决,所以转下来留着。原文链接 本文向大家讲解了Myeclipse错误:Errors occurred during the build...
  • qq_19808653
  • qq_19808653
  • 2015-11-18 14:27:40
  • 10015

eclipse maven 错误Errors occurred during the build...(524)之类的错误解决办法

情景:         使用eclipse创建一个maven工程后,再次启动eclipse报maven错误。 错误信息如下:       Errors occurred during t...
  • rj08zhou
  • rj08zhou
  • 2015-09-07 11:38:02
  • 4541

eclipse出现的Errors occurred during the build错误

eclipse出现下面的问题: Errors occurred during the build. 但是项目可以启动不受影响 最后解决问题的方法是      将builder中的JavaScri...
  • yanguo110
  • yanguo110
  • 2017-03-28 10:30:44
  • 1320

eclipse异常解决:Errors occurred during the build. Errors running builder Mule 3 hot deployment

eclipse异常解决了。。。搞了好久。。。 Errors occurred during the build. Errors running builder 'Mule 3 hot de...
  • u013614451
  • u013614451
  • 2014-11-06 22:05:22
  • 3120

eclipse打包APK出现 Errors occurred during the build问题

eclipse打包APK遇到 Errors occurred during the build问题: 解决办法:在Project-->Properties for*****-->Builders(也...
  • llixiangjian
  • llixiangjian
  • 2017-05-17 03:03:35
  • 524
收藏助手
不良信息举报
您举报文章:Eclipse编译项目时errors occurred during the build.
举报原因:
原因补充:

(最多只允许输入30个字)