尝试在控制台中获取此类输出的构建项目时遇到此问题:
[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,没有找到,清理所有也没有帮助。我做错了什么?
更新
对不起,伙计们,但我找不到好的解决方法,我想强调一个事实,我根本不在SocketFactory
我的项目中使用类!源代码在此问题之前没有更改,这就是为什么我认为 eclipse 或 adt 或其他东西中的问题,但是如果我使用 ant(由 sdk 生成)来构建这个项目就没有问题!!!
我通过删除 Eclipse、Android SDK、Eclipse 工作区来解决这个问题,然后重新安装它们,现在一切正常。
希望这会对某人有所帮助。