New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test failed after upgrade to gradle 4.4 #3846
Comments
I'm exactly with the same problem |
Same issue here. Robolectric blocks migration to |
See #3751 |
This is not the same issue. #3751 is about using Robolectric together with Espresso test. But this issue happens without Espresso. |
The workaround should be the same though. Upgrade your com.android.support.test.runner/monitor dependency to 1.0.2-alpha1 How is your gradle file configured now wrt com.android.support.test dependencies ? |
I don't think you understand. I do not have
Robolectric and test runner are not in the same classpath (Robolectric is in |
Sorry for the trouble... I cannot find the link now but IIRC there is a gradle bug where androidTest dependencies leak into test. Try this as a workaround: |
@brettchabot thx for the workaround, it works for me |
After a week of not getting the error I can also confirm that workaround is working for me. Thanks! |
I use testImplementation "com.android.support.test:monitor:1.0.2" confirm working still. |
Sometimes the test suite just totally bombs out and fails on every single job with the same Robolectric crash. Adding this line seems to fix it. robolectric/robolectric#3846 Here's the error: java.lang.VerifyError: class org.robolectric.android.fakes.RoboMonitoringInstrumentation overrides final method specifyDexMakerCacheProperty.()V
Description
After update Android Studio to 3.1, gradle update to version 4.4, test runs from Android Studio are broken with the following error:
Steps to Reproduce
Robolectric & Android Version
Link to a public git repo demonstrating the problem:
Sample code:
The text was updated successfully, but these errors were encountered: