android robotium教程,Robotium + Android studio

问题

When I run robotium (5.2.1) tests from android studio 1.0 RC 2, I get this following error ==>

:app:shrinkDebugTestMultiDexComponents FAILED

Error:Execution failed for task ':app:shrinkDebugTestMultiDexComponents'.> java.io.IOException: The output jar is empty. Did you specify the proper '-keep' options?

I have no problem to run the application "in normal mode".

Do you know where is my problem ?

Thx in advance

EDIT

According to Jared Burrows's answer I can pass task shrinkDebugTestMultiDexComponents but now I have this problem

:app:packageAllDebugTestClassesForMultiDex FAILED

Error:Execution failed for task ':app:packageAllDebugTestClassesForMultiDex'.> java.util.zip.ZipException: duplicate entry: android/support/multidex/BuildConfig.class

来源:https://stackoverflow.com/questions/27277285/robotium-android-studio

你可能感兴趣的:(android,robotium教程)