转换到的Dalvik格式失败,错误2 ADT 16.0.1 [英] Conversion to Dalvik format failed with error 2 adt 16.0.1

查看:170
本文介绍了转换到的Dalvik格式失败,错误2 ADT 16.0.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近,我们更新日食ADT插件到16版,现在无法运行我们的应用程序,它编译正常,但是当我们运行,它会引发以下错误:

Recently we updated eclipse adt plugin to 16 version, and now can't run our application, it compiles normally, but when we run, it throws following error :

麻烦写输出:无扩展运算$ C $下016be7fe @ 0032:sget对象V4:Lorg /阿帕奇/ HTTP / HttpVersion ;, org.apache.http.HttpVersion.HTTP_1_1:Lorg /阿帕奇/ HTTP / HttpVersion; 转换到的Dalvik格式失败,出现错误2

trouble writing output: No expanded opcode for 016be7fe @0032: sget-object v4:Lorg/apache/http/HttpVersion;, org.apache.http.HttpVersion.HTTP_1_1:Lorg/apache/http/HttpVersion; Conversion to Dalvik format failed with error 2

如果我们发表评论的一些ID在我们的布局XML文件,它再次运行的。我们的项目是巨大的​​,有加了很多库项目。 应用程序previous ADT插件,没有出口的库项目为.jar文件运行正常。我猜测,reasone我会改变目前最新的Andr​​oid版本的ID现在还不是最终的领域。

And if we comment some ID's in our layout xml files, it run's again. Our project is huge, and there are many library projects added to it. Application runs normally with previous adt plugin that didn't export library projects as .jar files. I guess that the reasone me be changes in latest android versions that ID's now is not final fields.

我的问题是,我们如何才能解决这个问题,并没有在Android的XML文件中的ID数量的限制? 或者,也许这是一个机器人的错误?

My question is how can we fix this, and is there a limitation on ID count in android xml files? Or maybe it is an android bug ?

推荐答案

其实这是becouse我的lib项目pacage的名字是不一样的,我在主体工程。

Actually it's becouse my lib projects pacage name is not the same as in my main project.

这篇关于转换到的Dalvik格式失败,错误2 ADT 16.0.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆