Android studio unit test : Issues in writing mock tests for volley request (finished with non-zero exit value 1)

后端 未结 2 892
庸人自扰
庸人自扰 2021-01-24 05:43

I have been trying to work on writing test cases for volley custom request, referencing For which I have implemented FakeHttpStack class and FakeRequestQueue<

相关标签:
2条回答
  • 2021-01-24 06:33

    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

    0 讨论(0)
  • 2021-01-24 06:39

    In the app-level build.gradle file, add

    defaultConfig{
      multiDexEnabled true
    }
    
    0 讨论(0)
提交回复
热议问题