Hello friends, I am getting this error while writing unittesting
"java.lang.RuntimeException: Method getMainLooper in android.os.Looper not mocked."
Dows anybody have idea what is the cause of it and how to fix it?
I am sharing the code in screenshot given below
😶 2
c
Chrimaeon
04/17/2022, 7:54 AM
You are not using coroutines, right? So setting the main dispatcher does not have any influence on LiveData. You need to use the