I have been trying to work on writing test cases for volley custom request, referencing For which I have implemented FakeHttpStack
class and FakeRequestQueue<
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
In the app-level build.gradle file, add
defaultConfig{
multiDexEnabled true
}