2011-04-21 12 views
2

Androidで動作するようにマシンを設定すると、 "コンパイル"するコードを取得できないか、あるいはコンパイル中に他のプロセスで停止することがあります"classes.dexの生成"と表示されます。"classes.dexを生成中..."

私が得るエラーは以下の通りです:

Information: Note: Some input files use unchecked or unsafe operations. 
Information: Note: Recompile with -Xlint:unchecked for details. 
Information: Compilation completed with 12 errors and 2 warnings 
Information: 12 errors 
Information: 1 warning 
Error: (org.joda.time.DateTimeZone$1) that doesn't come with an 
Error: associated EnclosingMethod attribute. This class was probably produced by a 
Error: compiler that did not target the modern .class file format. The recommended 
Error: solution is to recompile the class from source, using an up-to-date compiler 
Error: and without specifying any "-target" type options. The consequence of ignoring 
Error: this warning is that reflective operations on this class will incorrectly 
Error: indicate that it is *not* an inner class. 
Error: (junitx.extensions.TestSetup$1) that doesn't come with an 
Error: (junitx.ant.TestClassValidatorTask$1) that doesn't come with an 
Error: (junitx.util.AbstractSuiteBuilder$1) that doesn't come with an 
Error: (junitx.framework.TestSuite$1) that doesn't come with an 
Error: (junitx.tool.TestClassValidator$1) that doesn't come with an 
Warning: warning: Ignoring InnerClasses attribute for an anonymous inner class 

興味深いのは、このコードは、我々はそれがlooong時間前に設定したと誰もが行われていたものを覚えていない別のコンピュータに正しくコンパイルされることです。

私は狂ったようにグーグルであり、誰もがあなたがソースJodaTimeなどから再コンパイルする必要があると言いますが、同じコード(コピーして貼り付けたり、バージョンコントロールからダウンロードしたもの)が完璧に別のものマシンでは、これを引き起こしている私の環境について何かがある必要がありますが、私は何を探すべきか分かりません。

このタイプのエラーを認識する専門家はいますか?
これはあなたに起こったことがありますか?どのように修正しましたか?

助けてください...

注:
- 誰かが私は同様の質問が以前に頼まれてい承知しています、それを指摘する前にアンドロイド1.6

のためのコンパイル - IntelliJの
を使用します。ここでは例:Recompile jodatime?です。しかしその場合、提案されたソリューションはJodaTimeソースを再コンパイルすることでした。これはコードが1台のコンピュータで動作するものであり、他のコンピュータでは動作しないため、ここには該当しないと私は考えている。

+0

あなたはeclipseを使用していますか? – bytebender

+0

私はIntellijを使用しています。 – bluediapente

+0

は、使用しているjdkのバージョンと関係があります。あなたのコンピュータ上のJDKのバージョンとそれが動作する他のバージョンを確認できますか? – Josnidhin

答えて

1

IntelliJをアップデートしようとしましたか?

私は全く専門家ではありませんが、数日前にこの同じ問題に遭遇し、それが何であるか把握するまでかなりの時間がかかりました。 IntelliJバージョンになりました。

最新バージョン(夜間ビルド)に更新するだけで機能しました。

+0

それを修正しました!私はバージョン10.0.0を使用して10.0.3にアップデートしていましたが、前者はエラーでしたが、後者は警告になり、やっとコンパイルできました。ありがとう!! – bluediapente

0

同じエラーメッセージが表示され、同じクラス(ライブラリの古いバージョンなど)を宣言した2つのライブラリが含まれていることが原因であることが判明しました。エラーメッセージがどのように関連しているのか分かりませんが、古いバージョンを削除すると問題が解決しました。

関連する問題