转换到的Dalvik格式失败,错误1与使用javax /网/ SocketFactory.class [英] Conversion to Dalvik format failed with error 1 with javax/net/SocketFactory.class
问题描述
遇到试图生成项目获得这样的输出控制台时此问题:
Encounter this problem when trying to Build Project getting such output in console:
[2010-07-19 23:29:23 - myProject]
trouble processing "javax/net/SocketFactory.class":
[2010-07-19 23:29:23 - myProject]
Attempt to include a core VM class in something other than a core library.
It is likely that you have attempted to include the core library from a desktop
virtual machine into an application, which will most assuredly not work. If
you really intend to build a core library -- which is only appropriate as
part of creating a full virtual machine binary, as opposed to compiling an
application -- then use the "--core-library" option to suppress this error
message. If you go ahead and use "--core-library" but are in fact building
an application, then please be aware that your build will still fail at some
point; you will simply be denied the pleasure of reading this helpful error
message.
[2010-07-19 23:29:23 - myProject] 1 error; aborting
[2010-07-19 23:29:23 - myProject] Conversion to Dalvik format failed with error 1
我一直在寻找我的项目使用包的javax,没有发现,清洗所有的也于事无补。我在做什么错了?
I was looking for my project to use the package javax, not found, clean all also does not help. what I am doing wrong?
更新
对不起球员,但我无法找到良好的修复,我想强调一个事实,那我不在我的项目中使用的SocketFactory
类了!来源$ C $ C没有改变这个问题之前,这就是为什么我想在Eclipse或ADT或别的东西那样的问题,但如果我使用ant(SDK所产生的)来构建这个项目是没有问题的!
Sorry guys, but I could not find good fix for that, I want to emphasize the fact, that i dont use SocketFactory
class in my project at all! source code was not changed before this problem, and that's why i think that problem in eclipse or adt or something else, BUT if i use ant(generated by sdk) to build this project there is no problem!!!
我解决这个问题,通过删除Eclipse中的Android SDK,Eclipse工作区,只是重新安装它们,毕竟这工作得很好了。
I solve this problem by removing Eclipse, Android SDK, Eclipse workspace, and just reinstall them, after this all works fine for now.
希望这会帮助别人。
推荐答案
我有同样的问题.. 这为我工作 项目 - >属性 - > Java构建path-> libraries->删除所有包括Android罐子
I had the same problem.. This worked for me project-->properties->java build path->libraries-> remove all including android jars
现在去项目浏览器中,右键点击你正在使用的项目, 那么Android的工具--->修复项目属性... 做一个干净的,再建...
now go the project browser, right click on the project you are working on, then android tools---> fix project properties... do a clean and then build...
这篇关于转换到的Dalvik格式失败,错误1与使用javax /网/ SocketFactory.class的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!