https://kotlinlang.org logo
#mockk
Title
d

Davide Giuseppe Farella

08/30/2019, 10:00 AM
Sorry for bother you again guys, I still have “random”
NoSuchMethodException
on Android API 28:
Copy code
java.lang.NoSuchMethodException: obtainTempTypedValue []
at java.lang.Class.getMethod(Class.java:2068)
at java.lang.Class.getDeclaredMethod(Class.java:2047)
at io.mockk.proxy.android.MethodDescriptor.getMethod(MethodDescriptor.kt:22)
at io.mockk.proxy.android.advice.Advice.getOrigin(Advice.kt:37)
at java.lang.reflect.Method.invoke(Native Method)
at io.mockk.proxy.android.AndroidMockKDispatcher.getOrigin(AndroidMockKDispatcher.java:117)
This appearad for every tests that uses Room and it’s happening after we created
buildSrc
module, so might be some conflicting dependencies… Any clue about that?