コンソールでこのような出力を取得してプロジェクトをビルドしようとすると、次の問題が発生します。
[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 ワークスペースを削除してこの問題を解決し、それらを再インストールするだけで、今のところすべて正常に動作します。
これが誰かを助けることを願っています。