Skip to content Skip to sidebar Skip to footer

Android Studio Unit Test : Issues In Writing Mock Tests For Volley Request (finished With Non-zero Exit Value 1)

I have been trying to work on writing test cases for volley custom request, referencing For which I have implemented FakeHttpStack class and FakeRequestQueuefrom here My project t

Solution 1:

This may happen for many reasons like due to not having enough RAM to build your project, so free up enough memory and if it does not solve your issue then you can try to remove unused dependency libs and sync your gradle, you can refer to here

Solution 2:

In the app-level build.gradle file, add

defaultConfig{
  multiDexEnabled true
}

Post a Comment for "Android Studio Unit Test : Issues In Writing Mock Tests For Volley Request (finished With Non-zero Exit Value 1)"