Error starting up when testing with Robolectric

I am currently trying to test an Android application, but I am getting an error

FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:transformClassesWithPreJackPackagedLibrariesForDebug'. > com.android.sched.scheduler.RunnerProcessException: Error during 'EmptyClinitRemover' runner on 'static void org.robolectric.annotation.Config.<clinit>() (Config.java:38-39)' 

I am not sure why I am getting this error and was looking for solutions, but I did not find anything that could solve this problem.

My gradle file has this for Robolectric

 dependencies { compile('org.robolectric:robolectric:3.3') { exclude group: 'com.google.guava', module: 'guava' } } 
+5
source share

Source: https://habr.com/ru/post/1265517/


All Articles