When I run tests I get the error \"Command line is too long\". It works if I set the \"Shorten command line\" method in the Run/Debug configuration to \"JAR manifest\" for
Thanks to Rajesh Goel in Android Studio:
Android Studio
Run > Edit Configurations...
Select a test (better to select a parent test class) and set a Shorten command line: option to classpath file. Then OK (or Apply, OK).
Shorten command line:
classpath file