Open rusmonster opened 3 years ago
Same issue on latest(v3.12.4) version Help!
My problem happened after upgrade to AGP 7.0, before everything worked fine
Happened to me as well. Adding debuggable true to the testable build type fixed the error.
is there anywork around with this? running with debuggable false is a significant time saving on running tests for us, so it'd be very inconvienent to need debuggable apks just to be able to use the latest mockito.
check that
mockito-android version: 3.10.0 reproduced on android devices: Pixel2 (arm-v8, API28), Pixel2(x86-Emulator, API28), Pixel2(x86-Emulator, API29)
After removing one of my instrumentation tests I started to get the following error on devices with API > 28 and only for
release
build (fordebug
build everything still working fine):The
ConversationsRepository
interface which is cannot be mocked anymore:Full code of the removed test case:
The full code of the project where issue reproduces in the
mockito-issue-after
branch: https://github.com/twilio/twilio-conversations-demo-kotlin/tree/bugfix/mockito-issue-afterTo reproduce add any signingConfig into
app/build.gradle
forrelease
build and run:failed build from the
mockito-issue-after
branch (commit5255a58
): https://app.circleci.com/pipelines/github/twilio/twilio-conversations-demo-kotlin/50/workflows/b56dd1b2-8df2-4617-9a0a-392484001b44success build from the previous commit (
2a5a7f3
): https://app.circleci.com/pipelines/github/twilio/twilio-conversations-demo-kotlin/49/workflows/a7de3fe9-fbe7-420c-af13-25a17fbfbcce