日々精進

新しく学んだことを書き留めていきます

アプリ実行時になんかエラーが出る

以下のエラーが出た。
[2011-10-23 16:23:29 - Dex Loader] Unable to execute dex: Multiple dex files define Lcom/myapp/R$array;
[2011-10-23 16:23:29 - myProj] Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lcom/myapp/R$array;
これの原因はcommons-io-slim2.jarがプロジェクトのどこかに複数あること。
ADTライブラリの中と他のライブラリの中とか。
削除してプロジェクトで一つにすれば直る。
下記によると他の原因でもこのエラーメッセージが出るらしい。
android - Unable to execute dex: Multiple dex files define Lcom/myapp/R$array; - Stack Overflow