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台のコンピュータで動作するものであり、他のコンピュータでは動作しないため、ここには該当しないと私は考えている。
あなたはeclipseを使用していますか? – bytebender
私はIntellijを使用しています。 – bluediapente
は、使用しているjdkのバージョンと関係があります。あなたのコンピュータ上のJDKのバージョンとそれが動作する他のバージョンを確認できますか? – Josnidhin