Fixes #2007 : Downgrade objenesis version for mockito-android #2024
After building, mockito android pom includes objenesis 2.6 while mockito-core has objenesis 3.1.
Locally build version is Tested with our internal project to verify fix.
pom of mockito-android.
Side note: I had problem with animal sniffer on release/3.x branch. I had to disable android api 24 signature check to compile the app.
Breaking changes solutions for android modules
If you have motkito-kotlin with mockito-android, exclude mockito-core from mockito-kotlin.
Don't add mockito-core with mockito-android
Use dependency resolution
in root build.gradle
@@ Coverage Diff @@ ## release/3.x #2024 +/- ## ============================================== Coverage 84.88% 84.88% Complexity 2703 2703 ============================================== Files 325 325 Lines 8198 8198 Branches 979 979 ============================================== Hits 6959 6959 Misses 968 968 Partials 271 271
Objenesis 2.6 version is now strictly defined in mockito-android. When mockito-core or mockito-kotlin is added as dependency, there will be version conflict for objenesis 2.6 and 3.1. For helping developer,
Hey folks! I hate to beat a merged horse, but I'm having a ton of trouble building locally and it seems to be related to this issue. Can anyone offer me some pointers?