I followed this link to set up test cases in Android Studio:
But if I try to run some tests in my project I get the following error:
**Execution failed f
This is bug https://code.google.com/p/android/issues/detail?id=75936 (Support new dx option: --input-list=) which has been fixed in later versions of Android Studio. I believe you're running an older version; a modern version wouldn't allow you to use Build Tools 19.1.0. Try updating Android Studio, following its instructions to update your build scripts to use the latest version of the Android Gradle plugin, and see if that solves your problem.