mvbrenes
02/10/2019, 10:14 PMMockito-Kotlin
has been a pain if you are using the Android Jetitfier
. The library relies on a version of Mockito which has an updated version (1.9.0) of Byte-buddy
who is the real culprit here.
I was able to resolve this by adding:
android.jetifier.blacklist=byte-buddy
to my gradle.properties
file, now i can happily move on without forcing certain versions of Mockito or excluding libraries which gets kind of hairy when you have a lot of modules and dependencies.
Posting this here in case if helps anyone else 🙂arekolek
02/11/2019, 9:06 AMJay
02/11/2019, 1:18 PMuseAndroidX
and enableJetifier
as true, and all seems fine.Jay
02/11/2019, 1:18 PMplastiv
02/11/2019, 5:04 PMplastiv
02/11/2019, 5:21 PMmvbrenes
02/11/2019, 6:21 PMversion 2.1
, I will post an example of the build error I encountered when trying to assemble the tests later today. the way I was getting around the build error was to force Mockito version 2.22.0
as anything after that I was unable to run without issuesmvbrenes
02/11/2019, 6:25 PMByte-Buddy
plastiv
02/11/2019, 10:37 PM