-
Notifications
You must be signed in to change notification settings - Fork 249
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
Multidex incompatible class change error #67
Comments
I met the same problem as above.
|
We are facing the same issues. We have consistent failures in 2 tests, while all other tests are just fine. Both tests that exhibit this behavior are using multidex. |
Has there been any update on this issue? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I'm working on an application that uses dexmaker-mockito:2.2.0 in its instrumentation tests. I recently crossed the dex limit so I integrated multidex to continue development. After multidex was integrated I began seeing the error below when calling Mockito.spy:
The errors appears to be caused by a mismatch between com.android.dex.Leb128 and com.android.dx.util.ByteArrayAnnotatedOutput. ByteArrayAnnotatedOutput isn't included from any other library and the Mockito version is the one specified by dexmaker.
Interestingly, only some instances of Mockito.mock have the above issue. The code diverges at DexMaker:190:
For instances where the mock is correctly loaded, result1 exists. For instances where the mock encounters the above error, result1 does not exist.
I thought the problem might have been due to the class not being packaged in the main dex file, but adding the class to the multidex keep file didn't fix the issue.
Unfortunately, I can't provide you with a minimal working example because the exact cause of the problem is hard to nail down. However, I'm interested to get some insight into how an IncompatibleClassChangeError might occur in this scenario.
Thanks,
Andrew
The text was updated successfully, but these errors were encountered: