以下の内容はhttps://anton0825.hatenablog.com/entry/2014/12/26/000000より取得しました。


./gradlew connectedCheckを実行すると「com.android.dex.DexException: Multiple dex files define Lorg/hamcrest/Description」エラー

原因は以下のandroidTestCompileにあった。

androidTestCompile 'junit:junit:4.11'
androidTestCompile 'org.robolectric:robolectric:2.4+'

Robolectric2.4がJUnit 4.8.1に依存しているがそれとは別に4.11もインストールしているためhamcrestが重複してしまっていた。 junitのバージョンを4.8+に変更すると直った。

参考:




以上の内容はhttps://anton0825.hatenablog.com/entry/2014/12/26/000000より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14